diff --git a/cake/tests/cases/libs/controller/components/session.test.php b/cake/tests/cases/libs/controller/components/session.test.php index 1d59232a7..ae5a8477d 100644 --- a/cake/tests/cases/libs/controller/components/session.test.php +++ b/cake/tests/cases/libs/controller/components/session.test.php @@ -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