Skip to content

Commit

Permalink
change limit
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed Sep 27, 2023
1 parent 345f7a6 commit deb53b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ActiveRecordWriteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ public function testDeleteAllWhere()
public function testDeleteAllWhereWithLimitAndOrder()
{
$num_affected = Author::where('parent_author_id = 2')
->limit(1)
->limit(2)
->order("author_id asc")
->delete_all();
$this->assertEquals(1, $num_affected);
$this->assertEquals(2, $num_affected);
}

public function testDeleteAll()
Expand Down

0 comments on commit deb53b8

Please sign in to comment.