mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing errors caused by API changes.
This commit is contained in:
parent
4eef2c19f0
commit
982437595e
1 changed files with 2 additions and 2 deletions
|
@ -1063,7 +1063,7 @@ class AuthTest extends CakeTestCase {
|
|||
);
|
||||
$this->Controller->Session->delete('Auth');
|
||||
$url = '/posts/index/29?print=true&refer=menu';
|
||||
$this->Controller->params = Dispatcher::parseParams($url);
|
||||
$this->Controller->params = Dispatcher::parseParams(new CakeRequest($url));
|
||||
$this->Controller->Auth->initialize($this->Controller);
|
||||
$this->Controller->Auth->loginAction = array('controller' => 'AuthTest', 'action' => 'login');
|
||||
$this->Controller->Auth->userModel = 'AuthUser';
|
||||
|
@ -1079,7 +1079,7 @@ class AuthTest extends CakeTestCase {
|
|||
);
|
||||
$this->Controller->Session->delete('Auth');
|
||||
$url = '/posts/index/29?print=true&refer=menu';
|
||||
$this->Controller->params = Dispatcher::parseParams($url);
|
||||
$this->Controller->params = Dispatcher::parseParams(new CakeRequest($url));
|
||||
$this->Controller->Auth->initialize($this->Controller);
|
||||
$this->Controller->Auth->loginAction = array('controller' => 'AuthTest', 'action' => 'login');
|
||||
$this->Controller->Auth->userModel = 'AuthUser';
|
||||
|
|
Loading…
Reference in a new issue