Permalink
Browse files

Fixing failing test on postgres build.

  • Loading branch information...
1 parent df82aa0 commit d9db8c8124e35ef9e35c0f6b3703d389f2be1fb8 @markstory markstory committed Oct 1, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -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);
}

0 comments on commit d9db8c8

Please sign in to comment.