mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing failing tests in PostgreSQL cause by invalid datatype comparisons and missing id fields.
This commit is contained in:
parent
ea64588a81
commit
661fcd32ab
1 changed files with 3 additions and 1 deletions
|
@ -322,6 +322,7 @@ class ModelWriteTest extends BaseModelTest {
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'OverallFavorite' => array(
|
'OverallFavorite' => array(
|
||||||
|
'id' => 22,
|
||||||
'model_type' => '8-track',
|
'model_type' => '8-track',
|
||||||
'model_id' => '3',
|
'model_id' => '3',
|
||||||
'priority' => '1'
|
'priority' => '1'
|
||||||
|
@ -383,6 +384,7 @@ class ModelWriteTest extends BaseModelTest {
|
||||||
$User = new CounterCacheUser();
|
$User = new CounterCacheUser();
|
||||||
$Post = new CounterCachePost();
|
$Post = new CounterCachePost();
|
||||||
$data = array('Post' => array(
|
$data = array('Post' => array(
|
||||||
|
'id' => 22,
|
||||||
'title' => 'New Post',
|
'title' => 'New Post',
|
||||||
'user_id' => 66
|
'user_id' => 66
|
||||||
));
|
));
|
||||||
|
@ -2007,7 +2009,7 @@ class ModelWriteTest extends BaseModelTest {
|
||||||
'DoomedSomethingElse' => array(
|
'DoomedSomethingElse' => array(
|
||||||
'className' => 'SomethingElse',
|
'className' => 'SomethingElse',
|
||||||
'joinTable' => 'join_things',
|
'joinTable' => 'join_things',
|
||||||
'conditions' => 'JoinThing.doomed = 1',
|
'conditions' => 'JoinThing.doomed = true',
|
||||||
'unique' => true
|
'unique' => true
|
||||||
),
|
),
|
||||||
'NotDoomedSomethingElse' => array(
|
'NotDoomedSomethingElse' => array(
|
||||||
|
|
Loading…
Reference in a new issue