mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Added test for empty session check.
This commit is contained in:
parent
ca65689dd9
commit
623998f550
1 changed files with 10 additions and 0 deletions
|
@ -368,6 +368,16 @@ class CakeSessionTest extends CakeTestCase {
|
|||
$this->assertTrue(TestCakeSession::check('Session Test.Test Case'));
|
||||
}
|
||||
|
||||
/**
|
||||
* testCheckEmpty
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function testCheckEmpty() {
|
||||
$this->assertFalse(TestCakeSession::check());
|
||||
}
|
||||
|
||||
/**
|
||||
* test key exploitation
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue