Fix RT#82944
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / 11-authsessions-load-app-context.t
index e458c9f..7cc2e77 100644 (file)
@@ -33,7 +33,8 @@ BEGIN {
 
     plan tests => 4;
 
-    $ENV{TESTAPP_CONFIG} = {
+    use TestApp;
+    TestApp->config( {
         name => 'TestApp',     
         authentication => {
             default_realm => "users",
@@ -50,15 +51,15 @@ BEGIN {
                 },
             },
         },
-    };
+    } );
 
-    $ENV{TESTAPP_PLUGINS} = [
+    TestApp->setup(
         qw/Authentication
             Session
                    Session::Store::Dummy                  
             Session::State::Cookie                              
            /
-    ];
+    );
 }
 
 use Test::WWW::Mechanize::Catalyst 'TestApp';