Skip to content

Commit

Permalink
Item13897: Fixed compatibility with the new test framework.
Browse files Browse the repository at this point in the history
Request behaviour in this branch differs from the master what makes the
test failing on '/' path info. Seemingly master leaves web/topic undef
whereas in this branch they're initialized to LSC defaults. This
discrepancy shall be resolved somehow.
  • Loading branch information
vrurg committed Oct 10, 2016
1 parent 2c1cef5 commit 76d2597
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions UnitTestContrib/test/unit/RequestTests.pm
Expand Up @@ -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' )
Expand Down

0 comments on commit 76d2597

Please sign in to comment.