Skip to content

Commit 19b13b9

Browse files
authored
optional reset in countAll (as is in countAllResults)
required changes in test file fix: countAllResults call
1 parent 745aa7c commit 19b13b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Database/Builder/CountTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testCountAll()
2424

2525
$expectedSQL = "SELECT COUNT(*) AS \"numrows\" FROM \"jobs\"";
2626

27-
$this->assertEquals($expectedSQL, $builder->countAll(true));
27+
$this->assertEquals($expectedSQL, $builder->countAll(true, true));
2828
}
2929

3030
//--------------------------------------------------------------------
@@ -33,7 +33,7 @@ public function testCountAllResults()
3333
{
3434
$builder = new BaseBuilder('jobs', $this->db);
3535

36-
$answer = $builder->where('id >', 3)->countAllResults(null, true);
36+
$answer = $builder->where('id >', 3)->countAllResults(false, true);
3737

3838
$expectedSQL = "SELECT COUNT(*) AS \"numrows\" FROM \"jobs\" WHERE \"id\" > :id:";
3939

0 commit comments

Comments
 (0)