Skip to content
Permalink
Browse files

Remvoed session destruction from tests.

  • Loading branch information...
predominant committed Jul 19, 2010
1 parent a78bb20 commit ca1c8f1f8038a701f1b6edf0bf0b96fc218b38b4
Showing with 0 additions and 6 deletions.
  1. +0 −6 cake/tests/cases/libs/controller/components/session.test.php
@@ -349,8 +349,6 @@ function testSessionDestroy() {
* @return void
*/
function testSessionTimeout() {
session_destroy();
Configure::write('Security.level', 'low');
$Session =& new SessionComponent();
$Session->write('Test', 'some value');
@@ -361,7 +359,6 @@ function testSessionTimeout() {
$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 @@ function testSessionTimeout() {
$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 @@ function testSessionTimeout() {
$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')));
}
}

0 comments on commit ca1c8f1

Please sign in to comment.
You can’t perform that action at this time.