Fix failing tests caused by previous commit

This commit is contained in:
ADmad 2013-02-09 18:24:27 +05:30
parent a9bbfd80c7
commit 74b9cdb36f
2 changed files with 4 additions and 2 deletions

View file

@ -165,11 +165,12 @@ class ActionsAuthorizeTest extends CakeTestCase {
*/
public function testActionNoDoubleSlash() {
$this->auth->settings['actionPath'] = '/controllers/';
$request = array(
$request = new CakeRequest('/posts/index', false);
$request->addParams(array(
'plugin' => null,
'controller' => 'posts',
'action' => 'index'
);
));
$result = $this->auth->action($request);
$this->assertEquals('controllers/Posts/index', $result);
}

View file

@ -453,6 +453,7 @@ class AuthComponentTest extends CakeTestCase {
$this->Controller->Auth->userModel = 'AuthUser';
$this->Controller->Auth->authorize = false;
$this->Controller->request->addParams(Router::parse('auth_test/add'));
$this->Controller->Auth->initialize($this->Controller);
$result = $this->Controller->Auth->startup($this->Controller);
$this->assertTrue($result);