From 093807c1afdd27378d45684aaf531a85400a07a0 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 30 Dec 2014 02:50:03 +0100 Subject: [PATCH] tests: order of GET parameters doesn't matter --- tests/Application.Routers/Route.arrayParams.phpt | 2 +- tests/Application.Routers/Route.inc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Application.Routers/Route.arrayParams.phpt b/tests/Application.Routers/Route.arrayParams.phpt index cf0988472..fbdf44e99 100644 --- a/tests/Application.Routers/Route.arrayParams.phpt +++ b/tests/Application.Routers/Route.arrayParams.phpt @@ -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'); diff --git a/tests/Application.Routers/Route.inc b/tests/Application.Routers/Route.inc index 2e0e324ee..71cb872ea 100644 --- a/tests/Application.Routers/Route.inc +++ b/tests/Application.Routers/Route.inc @@ -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 );