File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/TestCase/Controller/Component Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class AuthorizationComponent extends Component
4141 protected $ _defaultConfig = [
4242 'identityAttribute ' => 'identity ' ,
4343 'serviceAttribute ' => 'authorization ' ,
44- 'authorizationEvent ' => 'Controller.initialize ' ,
44+ 'authorizationEvent ' => 'Controller.startup ' ,
4545 'skipAuthorization ' => [],
4646 'authorizeModel ' => [],
4747 'actionMap ' => []
Original file line number Diff line number Diff line change @@ -324,16 +324,16 @@ public function testImplementedEvents()
324324 {
325325 $ events = $ this ->Auth ->implementedEvents ();
326326 $ this ->assertEquals ([
327- 'Controller.initialize ' => 'authorizeAction '
327+ 'Controller.startup ' => 'authorizeAction '
328328 ], $ events );
329329 }
330330
331331 public function testImplementedCustom ()
332332 {
333- $ this ->Auth ->setConfig ('authorizationEvent ' , 'Controller.startup ' );
333+ $ this ->Auth ->setConfig ('authorizationEvent ' , 'Controller.initialize ' );
334334 $ events = $ this ->Auth ->implementedEvents ();
335335 $ this ->assertEquals ([
336- 'Controller.startup ' => 'authorizeAction '
336+ 'Controller.initialize ' => 'authorizeAction '
337337 ], $ events );
338338 }
339339
You can’t perform that action at this time.
0 commit comments