mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing failing test on postgres build.
This commit is contained in:
parent
df82aa09e4
commit
d9db8c8124
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue