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( $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(