Fixing failing test, because I forgot to update it earlier.

This commit is contained in:
Mark Story 2011-06-19 22:42:25 -07:00
parent ed8ccc2903
commit 72ca89412a

View file

@ -1050,7 +1050,7 @@ class SecurityComponentTest extends CakeTestCase {
$token = $this->Security->Session->read('_Token'); $token = $this->Security->Session->read('_Token');
$this->assertEquals(count($token['csrfTokens']), 1, 'Missing the csrf token.'); $this->assertEquals(count($token['csrfTokens']), 1, 'Missing the csrf token.');
$this->assertEquals(strtotime('+10 minutes'), current($token['csrfTokens']), 'Token expiry does not match'); $this->assertEquals(strtotime('+10 minutes'), current($token['csrfTokens']), 'Token expiry does not match');
$this->assertEquals(array('key', 'disabledFields'), array_keys($this->Controller->request->params['_Token']), 'Keys don not match'); $this->assertEquals(array('key', 'unlockedFields'), array_keys($this->Controller->request->params['_Token']), 'Keys don not match');
} }
/** /**