From b1a40c96e363d33ea3ff65d5640637832695df36 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 20:29:57 +0100 Subject: [PATCH] Update CartTest.php --- tests/CartTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index 570c643..ea21b05 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -218,9 +218,7 @@ class CartTest extends TestCase $cart = $this->getCart(); - $options = ['size' => 'XL', 'color' => 'red']; - - $cart->add(new BuyableProduct(), 1, $options); + $cart->add(new BuyableProduct(), 1, new CartItemOptions(['size' => 'XL', 'color' => 'red'])); $cartItem = $cart->get('07d5da5550494c62daf9993cf954303f');