Fixing failing test on postgres build.

This commit is contained in:
mark_story 2011-10-01 09:08:12 -04:00
parent df82aa09e4
commit d9db8c8124

View file

@ -6592,8 +6592,11 @@ class ModelReadTest extends BaseModelTest {
$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);
}