mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Fix assertion of SecurityComponentTest::testCsrfNonceVacuum()
This commit is contained in:
parent
7e4adb37e5
commit
40d5f32516
1 changed files with 1 additions and 1 deletions
|
@ -1489,7 +1489,7 @@ class SecurityComponentTest extends CakeTestCase {
|
|||
$this->Security->startup($this->Controller);
|
||||
$tokens = $this->Security->Session->read('_Token.csrfTokens');
|
||||
$this->assertEquals(2, count($tokens), 'Too many tokens left behind');
|
||||
$this->assertNotEmpty('valid', $tokens, 'Valid token was removed.');
|
||||
$this->assertNotEmpty($tokens['valid'], 'Valid token was removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue