diff --git a/tests/Routers/Route.php b/tests/Routers/Route.php index 30a129b08..e8c3b27da 100644 --- a/tests/Routers/Route.php +++ b/tests/Routers/Route.php @@ -7,9 +7,10 @@ use Tester\Assert; -function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter = NULL, $expectedParams = NULL, $expectedUrl = NULL) +function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter = NULL, $expectedParams = [], $expectedUrl = NULL) { $url = new Nette\Http\UrlScript("http://example.com$url"); + $url->setScriptPath('/'); $url->appendQuery([ 'test' => 'testvalue', 'presenter' => 'querypresenter',