mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update CartTest.php
This commit is contained in:
@@ -346,7 +346,9 @@ class CartTest extends TestCase
|
|||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
$cart->add(new BuyableProduct());
|
$cart->add(new BuyableProduct([
|
||||||
|
'description' => 'Description'
|
||||||
|
]));
|
||||||
|
|
||||||
$cart->update('027c91341fd5cf4d2579b49c4b6a90da', new BuyableProduct([
|
$cart->update('027c91341fd5cf4d2579b49c4b6a90da', new BuyableProduct([
|
||||||
'description' => 'Different description',
|
'description' => 'Different description',
|
||||||
@@ -366,8 +368,7 @@ class CartTest extends TestCase
|
|||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
$cart->add(new BuyableProduct([
|
$cart->add(new BuyableProduct([
|
||||||
'name' => '',
|
'description' => 'Description'
|
||||||
'title' => '',
|
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$cart->update('027c91341fd5cf4d2579b49c4b6a90da', ['description' => 'Different description']);
|
$cart->update('027c91341fd5cf4d2579b49c4b6a90da', ['description' => 'Different description']);
|
||||||
|
|||||||
Reference in New Issue
Block a user