Skip to content

Commit

Permalink
Adjusted test for yiisoft#9596
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 5, 2015
1 parent 703f374 commit 80d377e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/framework/web/UrlManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function testParseRESTRequest()
}

/**
* Tests if hash-anchor present for
* Tests if hash-anchor present
*
* https://github.com/yiisoft/yii2/pull/9596
*/
Expand All @@ -401,11 +401,12 @@ public function testHash()
'enablePrettyUrl' => true,
'cache' => null,
'rules' => [
'http://example.com/testPage' => 'site/test',
],
'hostInfo' => 'http://example.com',
'scriptUrl' => '/test',
'scriptUrl' => '/index.php',
]);
$url = $manager->createAbsoluteUrl(['site/index', '#' => 'testhash']);
$this->assertEquals('http://example.com/test/site/index#testhash', $url);
$url = $manager->createAbsoluteUrl(['site/test', '#' => 'testhash']);
$this->assertEquals('http://example.com/index.php/testPage#testhash', $url);
}
}

0 comments on commit 80d377e

Please sign in to comment.