Skip to content

Commit

Permalink
Fixing failing tests in PostgreSQL cause by invalid datatype comparis…
Browse files Browse the repository at this point in the history
…ons and missing id fields.
  • Loading branch information
markstory committed Mar 16, 2010
1 parent ea64588 commit 661fcd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cake/tests/cases/libs/model/model_write.test.php
Expand Up @@ -322,6 +322,7 @@ function testCacheClearOnSave() {

$data = array(
'OverallFavorite' => array(
'id' => 22,
'model_type' => '8-track',
'model_id' => '3',
'priority' => '1'
Expand Down Expand Up @@ -383,6 +384,7 @@ function testCounterCacheIncrease() {
$User = new CounterCacheUser();
$Post = new CounterCachePost();
$data = array('Post' => array(
'id' => 22,
'title' => 'New Post',
'user_id' => 66
));
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 661fcd3

Please sign in to comment.