diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php index 914378d90..f9f791cb9 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php @@ -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); } diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index 5bbebe48b..b4e8f9a36 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -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);