From 661fcd32ab56b3c288c922c570ea141461d794ba Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 15 Mar 2010 23:07:18 -0400 Subject: [PATCH] Fixing failing tests in PostgreSQL cause by invalid datatype comparisons and missing id fields. --- cake/tests/cases/libs/model/model_write.test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/model/model_write.test.php b/cake/tests/cases/libs/model/model_write.test.php index f57dc0eb4..b43b0facf 100644 --- a/cake/tests/cases/libs/model/model_write.test.php +++ b/cake/tests/cases/libs/model/model_write.test.php @@ -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(