Fixing failing tests in PostgreSQL cause by invalid datatype comparisons and missing id fields.

This commit is contained in:
Mark Story 2010-03-15 23:07:18 -04:00
parent ea64588a81
commit 661fcd32ab

View file

@ -322,6 +322,7 @@ class ModelWriteTest extends BaseModelTest {
$data = array(
'OverallFavorite' => array(
'id' => 22,
'model_type' => '8-track',
'model_id' => '3',
'priority' => '1'
@ -383,6 +384,7 @@ class ModelWriteTest extends BaseModelTest {
$User = new CounterCacheUser();
$Post = new CounterCachePost();
$data = array('Post' => array(
'id' => 22,
'title' => 'New Post',
'user_id' => 66
));
@ -2007,7 +2009,7 @@ class ModelWriteTest extends BaseModelTest {
'DoomedSomethingElse' => array(
'className' => 'SomethingElse',
'joinTable' => 'join_things',
'conditions' => 'JoinThing.doomed = 1',
'conditions' => 'JoinThing.doomed = true',
'unique' => true
),
'NotDoomedSomethingElse' => array(