Fixed array syntax.

This commit is contained in:
Yevgeny Tomenko 2016-01-28 22:12:24 +03:00
parent 06853a137a
commit e83a532af0

View file

@ -498,10 +498,10 @@ class SecurityComponentTest extends CakeTestCase {
$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.');