diff --git a/cake/tests/cases/libs/controller/components/security.test.php b/cake/tests/cases/libs/controller/components/security.test.php index 7cef73fc1..fd6767950 100644 --- a/cake/tests/cases/libs/controller/components/security.test.php +++ b/cake/tests/cases/libs/controller/components/security.test.php @@ -144,7 +144,9 @@ class SecurityComponentTest extends CakeTestCase { * @return void */ function startTest() { - $this->Controller = new SecurityTestController(new CakeRequest(null, false)); + $request = new CakeRequest('posts/index', false); + $request->addParams(array('controller' => 'posts', 'action' => 'index')); + $this->Controller = new SecurityTestController($request); $this->Controller->Components->init($this->Controller); $this->Controller->Security = $this->Controller->TestSecurity; $this->Controller->Security->blackHoleCallback = 'fail';