mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-20 22:35:14 +00:00
Update CartTest.php
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user