Skip to content

Commit 29ced7a

Browse files
committed
fix mariadb
1 parent fa8b9fc commit 29ced7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Units/Domain/EagerLoadingTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ class EagerLoadingTest extends TestCase
1515
{
1616
public function testUuidDuplicate(): void
1717
{
18-
BuyerFactory::times(10)->create();
18+
$buyerTimes = BuyerFactory::times(10)->create();
1919

2020
/** @var Buyer[] $buyers */
21-
$buyers = Buyer::with('wallet')->paginate(10);
21+
$buyers = Buyer::with('wallet')
22+
->whereIn('id', $buyerTimes->pluck('id')->toArray())
23+
->paginate(10);
2224

2325
$uuids = [];
2426
$balances = [];

0 commit comments

Comments
 (0)