Skip to content
Permalink
Browse files

Fixing tests so they initialize the session, before trying to test th…

…ings.
  • Loading branch information...
markstory committed Dec 15, 2010
1 parent bd95179 commit 19f9caed28f1100d87e7ce51e9e2cbaef1972469
Showing with 2 additions and 0 deletions.
  1. +2 −0 cake/tests/cases/libs/controller/components/session.test.php
@@ -143,6 +143,7 @@ function tearDown() {
*/
function testSessionIdConsistentAcrossRequestAction() {
$Session = new SessionComponent($this->ComponentCollection);
$Session->check('Test');
$this->assertTrue(isset($_SESSION));
$Object = new Object();
@@ -287,6 +288,7 @@ function testSessionFlash() {
function testSessionId() {
unset($_SESSION);
$Session = new SessionComponent($this->ComponentCollection);
$Session->check('test');
$this->assertEquals(session_id(), $Session->id());
}

0 comments on commit 19f9cae

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