Fix tests to remove checking of session ID directly on Session Helper.

This commit is contained in:
predominant 2010-06-23 11:32:23 +10:00 committed by mark_story
parent 17688a6002
commit 04b67e59fc
2 changed files with 2 additions and 2 deletions

View file

@ -307,7 +307,7 @@ class CakeSession extends Object {
*/
public static function error() {
if (self::$lastError) {
return self::$__error(self::$lastError);
return self::__error(self::$lastError);
}
return false;
}

View file

@ -163,7 +163,7 @@ class SessionHelperTest extends CakeTestCase {
*/
function testID() {
$id = session_id();
$result = $this->Session->id();
$result = CakeSession::id();
$this->assertEqual($id, $result);
}