Fixing failing tests caused by missing index in Security component testcase.

This commit is contained in:
mark_story 2010-09-14 22:20:30 -04:00
parent 0baaf6801b
commit 8e97a5ee2d

View file

@ -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';