mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing failing tests.
This commit is contained in:
parent
695d38fe68
commit
e857387a8e
3 changed files with 2 additions and 3 deletions
|
@ -491,7 +491,7 @@ class CakeRequest implements ArrayAccess {
|
|||
* @return The current object, you can chain this method.
|
||||
*/
|
||||
public function addParams($params) {
|
||||
$this->params = array_merge($this->params, $params);
|
||||
$this->params = array_merge($this->params, (array)$params);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
@ -822,7 +822,6 @@ class ObjectTest extends CakeTestCase {
|
|||
$this->assertEqual($result->url, 'request_action/params_pass');
|
||||
$this->assertEqual($result['controller'], 'request_action');
|
||||
$this->assertEqual($result['action'], 'params_pass');
|
||||
$this->assertEqual($result['form'], array());
|
||||
$this->assertEqual($result['plugin'], null);
|
||||
|
||||
$result = $this->object->requestAction('/request_action/params_pass/sort:desc/limit:5');
|
||||
|
|
|
@ -1275,7 +1275,7 @@ class RouterTest extends CakeTestCase {
|
|||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = Router::parse('/posts.atom?hello=goodbye');
|
||||
$expected = array('plugin' => null, 'controller' => 'posts.atom', 'action' => 'index', 'pass' => array(), 'named' => array(), 'url' => array('ext' => 'html'));
|
||||
$expected = array('plugin' => null, 'controller' => 'posts.atom', 'action' => 'index', 'pass' => array(), 'named' => array());
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
Router::reload();
|
||||
|
|
Loading…
Reference in a new issue