Fix failing tests.

This commit is contained in:
mark_story 2012-10-24 21:00:56 -04:00
parent 2841611c0f
commit c4b9fa6c7a
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ class ModelWriteTest extends BaseModelTest {
$lastInsertId = $TestModel->JoinAsJoinB->getLastInsertID();
$data['id'] = $lastInsertId;
$this->assertEquals(array('JoinAsJoinB' => $data), $result);
$this->assertTrue($lastInsertId);
$this->assertTrue($lastInsertId > 0);
$result = $TestModel->JoinAsJoinB->findById(1);
$expected = array(

View file

@ -860,7 +860,7 @@ class Validation {
if ($deep !== true) {
return true;
}
if (!$check) {
if ((int)$check === 0) {
return false;
}
$sum = 0;