Skip to content

Commit

Permalink
Making the id() test pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 14, 2010
1 parent 8eebdff commit 106c118
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cake/tests/cases/libs/cake_session.test.php
Expand Up @@ -305,13 +305,15 @@ function testWriteEmptyKey() {
* @return void
*/
function testId() {
TestCakeSession::destroy();

$result = TestCakeSession::id();
$expected = session_id();
$this->assertEqual($result, $expected);
$this->assertEquals($expected, $result);

TestCakeSession::id('MySessionId');
$result = TestCakeSession::id();
$this->assertEqual($result, 'MySessionId');
$this->assertEquals('MySessionId', $result);
}

/**
Expand Down

0 comments on commit 106c118

Please sign in to comment.