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