Fixing errors caused by API changes.

This commit is contained in:
Mark Story 2010-05-02 01:22:59 -04:00
parent 4eef2c19f0
commit 982437595e

View file

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