Skip to content
Permalink
Browse files

Fix error in PHP 5.3

  • Loading branch information...
markstory committed Jan 29, 2016
1 parent aa449b1 commit fc57dee72ffa393a4ba3b94cc51249082c1891e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
@@ -498,10 +498,10 @@ public function testValidatePostOnGetWithData() {
$fields = 'an-invalid-token';
$unlocked = '';
$this->Controller->request->data = [
$this->Controller->request->data = array(
'Model' => array('username' => 'nate', 'password' => 'foo', 'valid' => '0'),
'_Token' => compact('fields', 'unlocked')
];
);
$this->assertFalse($this->Controller->failed, 'Should not be failed yet');
$this->Controller->Security->startup($this->Controller);
$this->assertTrue($this->Controller->failed, 'Should fail because of validatePost.');

0 comments on commit fc57dee

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