Skip to content

Commit

Permalink
Fix error in PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 29, 2016
1 parent aa449b1 commit fc57dee
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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.');
Expand Down

0 comments on commit fc57dee

Please sign in to comment.