Making the id() test pass.

This commit is contained in:
mark_story 2010-12-10 22:00:44 -05:00
parent 8eebdffcbb
commit 106c1185b4

View file

@ -305,13 +305,15 @@ class CakeSessionTest extends CakeTestCase {
* @return void * @return void
*/ */
function testId() { function testId() {
TestCakeSession::destroy();
$result = TestCakeSession::id(); $result = TestCakeSession::id();
$expected = session_id(); $expected = session_id();
$this->assertEqual($result, $expected); $this->assertEquals($expected, $result);
TestCakeSession::id('MySessionId'); TestCakeSession::id('MySessionId');
$result = TestCakeSession::id(); $result = TestCakeSession::id();
$this->assertEqual($result, 'MySessionId'); $this->assertEquals('MySessionId', $result);
} }
/** /**