Make UglyRouter compatible with routes with parameters (#399)
This commit is contained in:
parent
6ad0486468
commit
bf4a761d3a
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ class UglyRouterTest extends ContainerTest
|
|||
public function testPathFor()
|
||||
{
|
||||
$this->assertEquals(
|
||||
'/?page=foo',
|
||||
'/?page=%2Ffoo',
|
||||
$this->router->pathFor('foo', [], [])
|
||||
);
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ class UglyRouterTest extends ContainerTest
|
|||
{
|
||||
$this->router->setBasePath('/bar');
|
||||
$this->assertEquals(
|
||||
'/bar/?page=foo',
|
||||
'/bar/?page=%2Ffoo',
|
||||
$this->router->pathFor('foo', [], [])
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue