mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixed unit tests
This commit is contained in:
parent
ebde8fdfb5
commit
e0b0da86bf
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue