Fix RT#82944
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / 07-authsessions-cached.t
index 745bf95..2c8b1d3 100644 (file)
@@ -33,7 +33,8 @@ BEGIN {
 
     plan tests => 8;
 
-    $ENV{TESTAPP_CONFIG} = {
+    use TestApp;
+    TestApp->config( {
         name => 'TestApp',
         authentication => {
             default_realm => "users",
@@ -52,15 +53,15 @@ BEGIN {
                 },
             },
         },
-    };
+    } );
 
-    $ENV{TESTAPP_PLUGINS} = [
+    TestApp->setup(
         qw/Authentication
            Session
            Session::Store::Dummy
            Session::State::Cookie
            /
-    ];
+    );
 }
 
 use Test::WWW::Mechanize::Catalyst 'TestApp';