Fix RT#82944
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / 06-auth-roles-column.t
index 70f5643..a021fca 100644 (file)
@@ -23,7 +23,8 @@ BEGIN {
 
     plan tests => 8;
 
-    $ENV{TESTAPP_CONFIG} = {
+    use TestApp;
+    TestApp->config( {
         name => 'TestApp',
         authentication => {
             default_realm => "users",
@@ -42,13 +43,13 @@ BEGIN {
                 },
             },
         },
-    };
+    } );
 
-    $ENV{TESTAPP_PLUGINS} = [
+    TestApp->setup(
         qw/Authentication
            Authorization::Roles
            /
-    ];
+    );
 }
 
 use Catalyst::Test 'TestApp';