Skip to content

Commit 81c3a48

Browse files
committed
tests: order of GET parameters doesn't matter
1 parent 1c35d65 commit 81c3a48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/Application.Routers/Route.arrayParams.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ testRouteIn($route, '/?arr[1]=1&arr[2]=2', 'Default', array(
2424
2 => '2',
2525
),
2626
'test' => 'testvalue',
27-
), '/?arr%5B1%5D=1&arr%5B2%5D=2&test=testvalue');
27+
), '/?test=testvalue&arr%5B1%5D=1&arr%5B2%5D=2');

tests/Application.Routers/Route.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter=
2323

2424
if ($request) { // matched
2525
$params = $request->getParameters();
26-
//asort($params);
26+
asort($params);
27+
asort($expectedParams);
2728
Assert::same( $expectedPresenter, $request->getPresenterName() );
2829
Assert::same( $expectedParams, $params );
2930

0 commit comments

Comments
 (0)