Skip to content

Commit

Permalink
composer: accepts routing 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 8, 2021
1 parent 0a4aeab commit f817a0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions tests/Routers/Route.optional.autooptional3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
);
2 changes: 0 additions & 2 deletions tests/Routers/Route.scalarParams.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,4 @@ test('', function () {
'http://example.com/homepage/',
testRouteOut($route, ['presenter' => 'Homepage', 'param' => null])
);

Assert::null(testRouteOut($route, ['presenter' => 'Homepage', 'param' => '']));
});

0 comments on commit f817a0b

Please sign in to comment.