mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Update CartTest.php
This commit is contained in:
@@ -132,7 +132,9 @@ class CartTest extends TestCase
|
|||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
$cart->add([new BuyableProduct(1), new BuyableProduct([
|
$cart->add([new BuyableProduct([
|
||||||
|
'id' => 1
|
||||||
|
]), new BuyableProduct([
|
||||||
'id' => 2
|
'id' => 2
|
||||||
])]);
|
])]);
|
||||||
|
|
||||||
@@ -148,7 +150,9 @@ class CartTest extends TestCase
|
|||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
$cartItems = $cart->add([new BuyableProduct(1), new BuyableProduct([
|
$cartItems = $cart->add([new BuyableProduct([
|
||||||
|
'id' => 1
|
||||||
|
]), new BuyableProduct([
|
||||||
'id' => 2
|
'id' => 2
|
||||||
])]);
|
])]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user