Skip to content

Commit 59cb7d3

Browse files
committed
fix test
1 parent 4db65ea commit 59cb7d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Units/Domain/ProductTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,15 @@ public function testPayCustomPrice(): void
275275

276276
self::assertSame(0, $buyer->balanceInt);
277277

278-
$buyer->deposit(6_000 + (int) $buyer->wallet->getKey());
279-
self::assertSame(6_000 + (int) $buyer->wallet->getKey(), $buyer->balanceInt);
278+
$buyer->deposit(6_000 + (int) $buyer->getKey());
279+
self::assertSame(6_000 + (int) $buyer->getKey(), $buyer->balanceInt);
280280

281281
$cart = app(Cart::class)
282282
->withItem($product, pricePerItem: 1_000)
283283
->withItem($product)
284284
;
285285

286-
self::assertSame(6000 + (int) $buyer->wallet->getKey(), (int) $cart->getTotal($buyer));
286+
self::assertSame(6_000 + (int) $buyer->getKey(), (int) $cart->getTotal($buyer));
287287

288288
$transfers = $buyer->payCart($cart);
289289
self::assertSame(0, $buyer->balanceInt);

0 commit comments

Comments
 (0)