diff --git a/UnitTestContrib/test/unit/RequestTests.pm b/UnitTestContrib/test/unit/RequestTests.pm index ea72ddd65c..10804b5884 100644 --- a/UnitTestContrib/test/unit/RequestTests.pm +++ b/UnitTestContrib/test/unit/RequestTests.pm @@ -179,9 +179,18 @@ sub test_Request_parse { my $tn = 0; foreach my $set (@paths) { $tn++; - my $req = new Foswiki::Request( $set->[1] ); - $req->pathInfo( $set->[0] ); - $this->createNewFoswikiSession( 'AdminUser', $req ); + + $this->createNewFoswikiApp( + requestParams => { initializer => $set->[1], }, + engineParams => { + initialAttributes => { + path_info => $set->[0], + user => 'AdminUser', + }, + }, + ); + + my $req = $this->app->request; #print STDERR $req->pathInfo() . " web " # . ( ( defined $req->web() ) ? $req->web() : 'undef' )