Skip to content

Commit f817a0b

Browse files
committed
composer: accepts routing 3.1
1 parent 0a4aeab commit f817a0b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"php": ">=7.2",
1919
"nette/component-model": "^3.0",
2020
"nette/http": "^3.0.2",
21-
"nette/routing": "~3.0.2",
21+
"nette/routing": "^3.0.2",
2222
"nette/utils": "^3.2.1"
2323
},
2424
"suggest": {

tests/Routers/Route.optional.autooptional3.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Assert::null(testRouteOut($route, ['presenter' => 'Homepage', 'default' => 'abc'
3737

3838
Assert::same(
3939
'http://example.com/homepage/123/xyz',
40-
testRouteOut($route, ['presenter' => 'Homepage', 'required' => 'xyz'])
40+
testRouteOut($route, ['presenter' => 'Homepage', 'action' => 'default', 'required' => 'xyz'])
4141
);
4242

4343
Assert::same(
4444
'http://example.com/homepage/abc/xyz',
45-
testRouteOut($route, ['presenter' => 'Homepage', 'required' => 'xyz', 'default' => 'abc'])
45+
testRouteOut($route, ['presenter' => 'Homepage', 'action' => 'default', 'required' => 'xyz', 'default' => 'abc'])
4646
);

tests/Routers/Route.scalarParams.phpt

-2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,4 @@ test('', function () {
209209
'http://example.com/homepage/',
210210
testRouteOut($route, ['presenter' => 'Homepage', 'param' => null])
211211
);
212-
213-
Assert::null(testRouteOut($route, ['presenter' => 'Homepage', 'param' => '']));
214212
});

0 commit comments

Comments
 (0)