Skip to content
Permalink
Browse files

Making the id() test pass.

  • Loading branch information...
markstory committed Dec 11, 2010
1 parent 8eebdff commit 106c1185b4618b5d6fe39226c549d1cc052b3d93
Showing with 4 additions and 2 deletions.
  1. +4 −2 cake/tests/cases/libs/cake_session.test.php
@@ -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);
}
/**

0 comments on commit 106c118

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