Skip to content

Commit 7065ed3

Browse files
authored
Force result ordering so count is correct
1 parent 2ca77c2 commit 7065ed3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/system/Database/Live/GroupTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ public function testGroupByCount()
128128
$result = $this->db->table('user')
129129
->selectCount('id', 'count')
130130
->groupBy('country')
131+
->orderBy('country', 'desc')
131132
->get()
132133
->getResult();
133134

134-
$this->assertEquals(3, $result[0]->count);
135+
$this->assertEquals(2, $result[0]->count);
135136
}
136137
}

0 commit comments

Comments
 (0)