Skip to content

Commit a75cd25

Browse files
kenjispaulbalandan
andauthored
refactor: use method chaining
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
1 parent eb41c54 commit a75cd25

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/system/Database/Builder/DeleteTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ public function testGetCompiledDeleteWithLimit()
5151
{
5252
$builder = $this->db->table('jobs');
5353

54-
$builder->where('id', 1);
55-
$builder->limit(10);
56-
$sql = $builder->getCompiledDelete();
54+
$sql = $builder->where('id', 1)->limit(10)->getCompiledDelete();
5755

5856
$expectedSQL = 'DELETE FROM "jobs"'
5957
. "\n" . 'WHERE "id" = 1 LIMIT 10';

0 commit comments

Comments
 (0)