Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix failing tests caused by previous commit
  • Loading branch information
ADmad committed Feb 9, 2013
1 parent a9bbfd8 commit 74b9cdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -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);
}
Expand Down
Expand Up @@ -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);

Expand Down

0 comments on commit 74b9cdb

Please sign in to comment.