Skip to content

Commit

Permalink
Fixing failing tests in controller test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 7, 2010
1 parent 88c717d commit 22497eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/controller.php
Expand Up @@ -1039,7 +1039,7 @@ public function paginate($object = null, $scope = array(), $whitelist = array())
), E_USER_WARNING);
return array();
}
$options = array_merge($this->request->params, $this->params['url'], $this->passedArgs);
$options = array_merge($this->request->params, $this->request->params['url'], $this->passedArgs);

if (isset($this->paginate[$object->alias])) {
$defaults = $this->paginate[$object->alias];
Expand Down
1 change: 1 addition & 0 deletions cake/tests/cases/libs/controller/controller.test.php
Expand Up @@ -759,6 +759,7 @@ function testPaginateExtraParams() {
function testPaginateFieldsDouble(){
$Controller =& new Controller();
$Controller->uses = array('ControllerPost');
$Controller->request = $this->getMock('CakeRequest');
$Controller->request->params['url'] = array();
$Controller->constructClasses();

Expand Down

0 comments on commit 22497eb

Please sign in to comment.