|
|
|
@ -533,6 +533,13 @@ class RouterTest extends TestCase
|
|
|
|
|
$this->assertTrue($result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function testGetRootUrlByAlias()
|
|
|
|
|
{
|
|
|
|
|
$this->router->map('/', [$this, 'ok'], false, 'path1');
|
|
|
|
|
$url = $this->router->getUrlByAlias('path1');
|
|
|
|
|
$this->assertEquals('/', $url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function testGetUrlByAliasNoMatches()
|
|
|
|
|
{
|
|
|
|
|
$this->router->map('/path1', [$this, 'ok'], false, 'path1');
|
|
|
|
|