From e0b0da86bf3d8fcd3f8d887f6bba22687c70b2ef Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Thu, 26 Jan 2017 22:21:09 +0100 Subject: [PATCH] fixed unit tests --- lib/Cake/Test/Case/Routing/RouterTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 2392b7556..90919cdc4 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -2562,8 +2562,9 @@ class RouterTest extends CakeTestCase { 'named' => array('page' => 123, 'sort' => 'Article.title', 'direction' => 'desc'), 'url' => array(), ); - $result = Router::reverse($params); + $result = Router::reverseToArray($params); $expected = array( + 'plugin' => null, 'controller' => 'posts', 'action' => 'index', 123, @@ -2585,6 +2586,7 @@ class RouterTest extends CakeTestCase { $request->query = array('url' => 'eng/posts/view/123', 'test' => 'value'); $result = Router::reverseToArray($request); $expected = array( + 'plugin' => null, 'controller' => 'posts', 'action' => 'view', 123,