From ca4674525ad405508768387589e5d7927e6c309d Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Jan 2021 22:30:53 +0100 Subject: [PATCH] Update CartTest.php --- tests/CartTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index e1babea..b77a75a 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -132,7 +132,9 @@ class CartTest extends TestCase $cart = $this->getCart(); - $cart->add([new BuyableProduct(1), new BuyableProduct([ + $cart->add([new BuyableProduct([ + 'id' => 1 + ]), new BuyableProduct([ 'id' => 2 ])]); @@ -148,7 +150,9 @@ class CartTest extends TestCase $cart = $this->getCart(); - $cartItems = $cart->add([new BuyableProduct(1), new BuyableProduct([ + $cartItems = $cart->add([new BuyableProduct([ + 'id' => 1 + ]), new BuyableProduct([ 'id' => 2 ])]);