Permalink
Browse files

Fixing failing tests in PostgreSQL cause by invalid datatype comparis…

…ons and missing id fields.
  • Loading branch information...
1 parent ea64588 commit 661fcd32ab56b3c288c922c570ea141461d794ba @markstory markstory committed Mar 16, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 cake/tests/cases/libs/model/model_write.test.php
@@ -322,6 +322,7 @@ function testCacheClearOnSave() {
$data = array(
'OverallFavorite' => array(
+ 'id' => 22,
'model_type' => '8-track',
'model_id' => '3',
'priority' => '1'
@@ -383,6 +384,7 @@ function testCounterCacheIncrease() {
$User = new CounterCacheUser();
$Post = new CounterCachePost();
$data = array('Post' => array(
+ 'id' => 22,
'title' => 'New Post',
'user_id' => 66
));
@@ -2007,7 +2009,7 @@ function testHabtmSaveWithConditionsInAssociation() {
'DoomedSomethingElse' => array(
'className' => 'SomethingElse',
'joinTable' => 'join_things',
- 'conditions' => 'JoinThing.doomed = 1',
+ 'conditions' => 'JoinThing.doomed = true',
'unique' => true
),
'NotDoomedSomethingElse' => array(

0 comments on commit 661fcd3

Please sign in to comment.