Remvoed session destruction from tests.

This commit is contained in:
predominant 2010-07-19 12:14:44 +10:00
parent a78bb20bda
commit ca1c8f1f80

View file

@ -349,8 +349,6 @@ class SessionComponentTest extends CakeTestCase {
* @return void
*/
function testSessionTimeout() {
session_destroy();
Configure::write('Security.level', 'low');
$Session =& new SessionComponent();
$Session->write('Test', 'some value');
@ -361,7 +359,6 @@ class SessionComponentTest extends CakeTestCase {
$this->assertEqual($Session->time, mktime());
$this->assertEqual($_SESSION['Config']['time'], $Session->time + (Security::inactiveMins() * Configure::read('Session.timeout')));
session_destroy();
Configure::write('Security.level', 'medium');
$Session =& new SessionComponent();
$Session->write('Test', 'some value');
@ -371,8 +368,6 @@ class SessionComponentTest extends CakeTestCase {
$this->assertEqual($Session->time, mktime());
$this->assertEqual($_SESSION['Config']['time'], $Session->time + (Security::inactiveMins() * Configure::read('Session.timeout')));
session_destroy();
Configure::write('Security.level', 'high');
$Session =& new SessionComponent();
$Session->write('Test', 'some value');
@ -381,6 +376,5 @@ class SessionComponentTest extends CakeTestCase {
$this->assertEqual($_SESSION['Config']['time'], $Session->sessionTime);
$this->assertEqual($Session->time, mktime());
$this->assertEqual($_SESSION['Config']['time'], $Session->time + (Security::inactiveMins() * Configure::read('Session.timeout')));
}
}