Skip to content

Commit

Permalink
Remove initialize() call
Browse files Browse the repository at this point in the history
SecurityComponent does not implement this method.
  • Loading branch information
markstory committed Jul 18, 2013
1 parent 599e260 commit 8483f9d
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -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']);
Expand Down

0 comments on commit 8483f9d

Please sign in to comment.