From fa3a606faa10392f1307395df9e50e8c0c6ca82b Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Jan 2021 22:31:33 +0100 Subject: [PATCH] Update CartTest.php --- tests/CartTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index b77a75a..7cd167e 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -1107,7 +1107,9 @@ class CartTest extends TestCase public function it_can_calculate_all_values_after_updating_from_array() { $cart = $this->getCartDiscount(50); - $cart->add(new BuyableProduct(1, 'First item', 10.00), 1); + $cart->add(new BuyableProduct([ + 'name' => 'First item' + ]), 1); $cart->update('027c91341fd5cf4d2579b49c4b6a90da', ['qty' => 2]);