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:
renan.saddam 2008-09-19 02:57:58 +00:00
parent 5cedddb9d2
commit 4f5a51d79d

View file

@ -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