Skip to content
Permalink
Browse files

Remove initialize() call

SecurityComponent does not implement this method.
  • Loading branch information...
markstory committed Jul 15, 2013
1 parent 599e260 commit 8483f9d45605b793f46daf7c53410431c3d9efe5
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Test/TestCase/Controller/Component/SecurityComponentTest.php
@@ -208,9 +208,7 @@ public function testConstructorSettingProperties() {
'requireGet' => array('index'),
'validatePost' => false,
);
$event = new Event('Controller.initialize');
$Security = new SecurityComponent($this->Controller->Components, $settings);
$this->Controller->Security->initialize($event, $this->Controller, $settings);
$this->assertEquals($Security->requirePost, $settings['requirePost']);
$this->assertEquals($Security->requireSecure, $settings['requireSecure']);
$this->assertEquals($Security->requireGet, $settings['requireGet']);

0 comments on commit 8483f9d

Please sign in to comment.
You can’t perform that action at this time.