Skip to content

Commit a1f8bbd

Browse files
committedApr 18, 2025·
test: add test cases for limit clause in product queries
1 parent 67ca2b1 commit a1f8bbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎tests/LimitTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ class ProductWithDefaultConnectionLimit extends Product
4343
$products = ProductWithDefaultConnectionLimit::all();
4444
expect($products)->toHaveCount(4);
4545

46+
$products = ProductWithDefaultConnectionLimit::limit(3)->get();
47+
expect($products)->toHaveCount(3);
48+
4649
$products = ProductWithLimit::limit(3)->get();
4750
expect($products)->toHaveCount(3);
4851
});

0 commit comments

Comments
 (0)
Please sign in to comment.