Skip to content

Commit

Permalink
tests: order of GET parameters doesn't matter
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 30, 2014
1 parent df3207e commit 093807c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Application.Routers/Route.arrayParams.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ testRouteIn($route, '/?arr[1]=1&arr[2]=2', 'Default', array(
2 => '2',
),
'test' => 'testvalue',
), '/?arr%5B1%5D=1&arr%5B2%5D=2&test=testvalue');
), '/?test=testvalue&arr%5B1%5D=1&arr%5B2%5D=2');
3 changes: 2 additions & 1 deletion tests/Application.Routers/Route.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter=

if ($request) { // matched
$params = $request->getParameters();
//asort($params);
asort($params);
asort($expectedParams);
Assert::same( $expectedPresenter, $request->getPresenterName() );
Assert::same( $expectedParams, $params );

Expand Down

0 comments on commit 093807c

Please sign in to comment.