From 106c1185b4618b5d6fe39226c549d1cc052b3d93 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 10 Dec 2010 22:00:44 -0500 Subject: [PATCH] Making the id() test pass. --- cake/tests/cases/libs/cake_session.test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/cake_session.test.php b/cake/tests/cases/libs/cake_session.test.php index 889053817..231b74ec9 100644 --- a/cake/tests/cases/libs/cake_session.test.php +++ b/cake/tests/cases/libs/cake_session.test.php @@ -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); } /**