mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fix failing tests.
This commit is contained in:
parent
2841611c0f
commit
c4b9fa6c7a
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -860,7 +860,7 @@ class Validation {
|
|||
if ($deep !== true) {
|
||||
return true;
|
||||
}
|
||||
if (!$check) {
|
||||
if ((int)$check === 0) {
|
||||
return false;
|
||||
}
|
||||
$sum = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue