Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing failing test on postgres build.

  • Loading branch information...
commit d9db8c8124e35ef9e35c0f6b3703d389f2be1fb8 1 parent df82aa0
@markstory markstory authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/Cake/Test/Case/Model/ModelReadTest.php
View
7 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.