Browse Source

fix SecurityComponentTest, does not use event data for test

thinkingmedia 9 years ago
parent
commit
6f3c0287a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Controller/Component/SecurityComponentTest.php

+ 1 - 1
tests/TestCase/Controller/Component/SecurityComponentTest.php

@@ -213,7 +213,7 @@ class SecurityComponentTest extends TestCase
             'action' => 'index'
         ]);
         $Controller = new \TestApp\Controller\SomePagesController($request);
-        $event = new Event('Controller.startup', $Controller, $this->Controller);
+        $event = new Event('Controller.startup', $Controller);
         $Security = new SecurityComponent($Controller->components());
         $Security->config('blackHoleCallback', '_fail');
         $Security->startup($event);