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
*/
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);
}
/**