mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Proving bad condition structure when Session.checkAgent equal to false. Refs #5450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7631 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5cedddb9d2
commit
4f5a51d79d
1 changed files with 10 additions and 0 deletions
|
@ -151,6 +151,16 @@ class SessionComponentTest extends CakeTestCase {
|
|||
$this->assertFalse($Session->__active);
|
||||
$this->assertFalse($Session->valid());
|
||||
Configure::write('Session.start', true);
|
||||
|
||||
$Session =& new SessionComponent();
|
||||
$Session->time = $Session->read('Config.time') + 1;
|
||||
$this->assertFalse($Session->valid());
|
||||
|
||||
Configure::write('Session.checkAgent', false);
|
||||
$Session =& new SessionComponent();
|
||||
$Session->time = $Session->read('Config.time') + 1;
|
||||
$this->assertFalse($Session->valid());
|
||||
Configure::write('Session.checkAgent', true);
|
||||
}
|
||||
/**
|
||||
* testSessionError method
|
||||
|
|
Loading…
Reference in a new issue