Fix a test for PHP5.3

This commit is contained in:
chinpei215 2016-10-16 22:37:12 +09:00
parent 739664d6c7
commit 3102d89313

View file

@ -1854,7 +1854,7 @@ class SecurityComponentTest extends CakeTestCase {
public function testAuthRequiredThrowsExceptionTokenNotFoundPost() {
$this->Controller->Security->requireAuth = array('protected');
$this->Controller->request->params['action'] = 'protected';
$this->Controller->request->data = 'notEmpty';
$this->Controller->request->data = array('some-key' => 'some-value');
$this->Controller->Security->authRequired($this->Controller);
}