Skip to content

Commit 9e82a24

Browse files
committed
test update
1 parent a5e9a89 commit 9e82a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Eloquent/OrderAndPaginationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function isSorted(Collection $collection, $key, $descending = false): bool
6262
test('sort products by color with missing values treated as first', function () {
6363
Product::factory()->state(['color' => null])->create();
6464
Product::factory()->state(['color' => 'blue'])->create();
65-
$products = Product::orderBy('color', 'desc', null, '_first')->get();
65+
$products = Product::orderBy('color', 'desc')->withSort('color', 'missing', '_first')->get();
6666
expect($products->first()->color)->toBeNull();
6767
});
6868

0 commit comments

Comments
 (0)