diff --git a/composer.json b/composer.json index 52be37557..eb1121be2 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": ">=7.2", "nette/component-model": "^3.0", "nette/http": "^3.0.2", - "nette/routing": "~3.0.2", + "nette/routing": "^3.0.2", "nette/utils": "^3.2.1" }, "suggest": { diff --git a/tests/Routers/Route.optional.autooptional3.phpt b/tests/Routers/Route.optional.autooptional3.phpt index e75e101a0..020192b63 100644 --- a/tests/Routers/Route.optional.autooptional3.phpt +++ b/tests/Routers/Route.optional.autooptional3.phpt @@ -37,10 +37,10 @@ Assert::null(testRouteOut($route, ['presenter' => 'Homepage', 'default' => 'abc' Assert::same( 'http://example.com/homepage/123/xyz', - testRouteOut($route, ['presenter' => 'Homepage', 'required' => 'xyz']) + testRouteOut($route, ['presenter' => 'Homepage', 'action' => 'default', 'required' => 'xyz']) ); Assert::same( 'http://example.com/homepage/abc/xyz', - testRouteOut($route, ['presenter' => 'Homepage', 'required' => 'xyz', 'default' => 'abc']) + testRouteOut($route, ['presenter' => 'Homepage', 'action' => 'default', 'required' => 'xyz', 'default' => 'abc']) ); diff --git a/tests/Routers/Route.scalarParams.phpt b/tests/Routers/Route.scalarParams.phpt index 2d1224792..7791a9020 100644 --- a/tests/Routers/Route.scalarParams.phpt +++ b/tests/Routers/Route.scalarParams.phpt @@ -209,6 +209,4 @@ test('', function () { 'http://example.com/homepage/', testRouteOut($route, ['presenter' => 'Homepage', 'param' => null]) ); - - Assert::null(testRouteOut($route, ['presenter' => 'Homepage', 'param' => ''])); });