fixed unit tests

This commit is contained in:
Val Bancer 2017-01-26 22:21:09 +01:00
parent ebde8fdfb5
commit e0b0da86bf

View file

@ -2562,8 +2562,9 @@ class RouterTest extends CakeTestCase {
'named' => array('page' => 123, 'sort' => 'Article.title', 'direction' => 'desc'), 'named' => array('page' => 123, 'sort' => 'Article.title', 'direction' => 'desc'),
'url' => array(), 'url' => array(),
); );
$result = Router::reverse($params); $result = Router::reverseToArray($params);
$expected = array( $expected = array(
'plugin' => null,
'controller' => 'posts', 'controller' => 'posts',
'action' => 'index', 'action' => 'index',
123, 123,
@ -2585,6 +2586,7 @@ class RouterTest extends CakeTestCase {
$request->query = array('url' => 'eng/posts/view/123', 'test' => 'value'); $request->query = array('url' => 'eng/posts/view/123', 'test' => 'value');
$result = Router::reverseToArray($request); $result = Router::reverseToArray($request);
$expected = array( $expected = array(
'plugin' => null,
'controller' => 'posts', 'controller' => 'posts',
'action' => 'view', 'action' => 'view',
123, 123,