Permalink
Browse files

Fix failing tests caused by previous commit

  • Loading branch information...
1 parent a9bbfd8 commit 74b9cdb36fa4680b5c8d8be6a553c3482ef3afa7 @ADmad ADmad committed Feb 9, 2013
@@ -165,11 +165,12 @@ public function testActionMethod() {
*/
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);
}
@@ -453,6 +453,7 @@ public function testAuthorizeFalse() {
$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);

0 comments on commit 74b9cdb

Please sign in to comment.