Skip to content

Commit

Permalink
Fixing failing tests caused by missing index in Security component te…
Browse files Browse the repository at this point in the history
…stcase.
  • Loading branch information
markstory committed Sep 15, 2010
1 parent 0baaf68 commit 8e97a5e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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';
Expand Down

0 comments on commit 8e97a5e

Please sign in to comment.