Skip to content
This repository
Browse code

Fix failing test, find('first') now returns empty array when no recor…

…d was found
  • Loading branch information...
commit 39dcb80b451dec37e44750482a0d207109dcac11 1 parent a0665fe
ceeram authored October 26, 2012
2  lib/Cake/Test/Case/Console/Command/AclShellTest.php
@@ -177,7 +177,7 @@ public function testDelete() {
177 177
 
178 178
 		$Aro = ClassRegistry::init('Aro');
179 179
 		$result = $Aro->findById(3);
180  
-		$this->assertFalse($result);
  180
+		$this->assertEmpty($result);
181 181
 	}
182 182
 
183 183
 /**

0 notes on commit 39dcb80

Ber Clausen

I think it should be $this->assertEquals(array(), $result); to be more strict and test for an empty array.

ceeram
ceeram

Changed to assertSame() now, as assertEquals does not check type

ceeram
Please sign in to comment.
Something went wrong with that request. Please try again.