Skip to content

Commit

Permalink
Fixing failing test on postgres build.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 1, 2011
1 parent df82aa0 commit d9db8c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -6592,8 +6592,11 @@ public function testFindCount() {

$Article = new Article();
$Article->recursive = -1;
$expected = count($Article->find('all', array('group' => 'Article.user_id')));
$result = $Article->find('count', array('group' => 'Article.user_id'));
$expected = count($Article->find('all', array(
'fields' => array('Article.user_id'),
'group' => 'Article.user_id')
));
$result = $Article->find('count', array('group' => array('Article.user_id')));
$this->assertEquals($expected, $result);
}

Expand Down

0 comments on commit d9db8c8

Please sign in to comment.