From 8e97a5ee2d616753eaf920c9ae3b14c0eba77153 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 14 Sep 2010 22:20:30 -0400 Subject: [PATCH] Fixing failing tests caused by missing index in Security component testcase. --- cake/tests/cases/libs/controller/components/security.test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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';