Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix failing tests caused by previous commit

  • Loading branch information...
commit 74b9cdb36fa4680b5c8d8be6a553c3482ef3afa7 1 parent a9bbfd8
@ADmad ADmad authored
View
5 lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php
@@ -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);
}
View
1  lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.