mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update CartTest.php
This commit is contained in:
@@ -218,9 +218,7 @@ class CartTest extends TestCase
|
|||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
$options = ['size' => 'XL', 'color' => 'red'];
|
$cart->add(new BuyableProduct(), 1, new CartItemOptions(['size' => 'XL', 'color' => 'red']));
|
||||||
|
|
||||||
$cart->add(new BuyableProduct(), 1, $options);
|
|
||||||
|
|
||||||
$cartItem = $cart->get('07d5da5550494c62daf9993cf954303f');
|
$cartItem = $cart->get('07d5da5550494c62daf9993cf954303f');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user