euromark 13 years ago
parent
commit
416180d801
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Test/Case/Lib/AuthTest.php

+ 2 - 1
Test/Case/Lib/AuthTest.php

@@ -21,7 +21,8 @@ class AuthTest extends MyCakeTestCase {
 
 	public function testId() {
 		$id = Auth::id();
-		$this->assertNull($id);
+		// can also be false if session cannot be started
+		$this->assertTrue($id === null || $id === false);
 
 		CakeSession::write('Auth.User.id', 1);
 		$id = Auth::id();