Fixing failing tests.

This commit is contained in:
mark_story 2011-05-04 23:08:10 -04:00
parent 695d38fe68
commit e857387a8e
3 changed files with 2 additions and 3 deletions

View file

@ -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;
}

View file

@ -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');

View file

@ -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();