mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Fixing failing tests in controller test.
This commit is contained in:
parent
88c717dbd8
commit
22497eb41c
2 changed files with 2 additions and 1 deletions
|
@ -1039,7 +1039,7 @@ class Controller extends Object {
|
||||||
), E_USER_WARNING);
|
), E_USER_WARNING);
|
||||||
return array();
|
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])) {
|
if (isset($this->paginate[$object->alias])) {
|
||||||
$defaults = $this->paginate[$object->alias];
|
$defaults = $this->paginate[$object->alias];
|
||||||
|
|
|
@ -759,6 +759,7 @@ class ControllerTest extends CakeTestCase {
|
||||||
function testPaginateFieldsDouble(){
|
function testPaginateFieldsDouble(){
|
||||||
$Controller =& new Controller();
|
$Controller =& new Controller();
|
||||||
$Controller->uses = array('ControllerPost');
|
$Controller->uses = array('ControllerPost');
|
||||||
|
$Controller->request = $this->getMock('CakeRequest');
|
||||||
$Controller->request->params['url'] = array();
|
$Controller->request->params['url'] = array();
|
||||||
$Controller->constructClasses();
|
$Controller->constructClasses();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue