Fix RT#82944
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / 08-simpledb-auth-roles-relationship.t
index d5251e1..25b85e7 100644 (file)
@@ -23,7 +23,8 @@ BEGIN {
 
     plan tests => 8;
 
-    $ENV{TESTAPP_CONFIG} = {
+    use TestApp;
+    TestApp->config( {
         name => 'TestApp',
         'Plugin::Authentication' => {
             default => {
@@ -32,13 +33,13 @@ BEGIN {
                 password_type => 'clear'
                        }
                }
-    };
+    } );
 
-    $ENV{TESTAPP_PLUGINS} = [
+    TestApp->setup(
         qw/Authentication
            Authorization::Roles
            /
-    ];
+    );
 }
 
 use Catalyst::Test 'TestApp';