mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 13:51:44 +00:00
fix tests
This commit is contained in:
@@ -1077,13 +1077,13 @@
|
||||
|
||||
$this->cart->add($item);
|
||||
|
||||
$this->cart->addConditions([$shipping, $tax]);
|
||||
$this->cart->condition([$shipping, $tax]);
|
||||
|
||||
// let's prove first we have now two conditions in the cart
|
||||
expect($this->cart->getConditions()->count())->toEqual(2, 'Cart should have two conditions');
|
||||
|
||||
// now let's remove a specific condition by condition name
|
||||
$this->cart->removeCondition('Tax');
|
||||
$this->cart->removeCartCondition('Tax');
|
||||
|
||||
// cart should have now only 1 condition
|
||||
expect($this->cart->getConditions()->count())->toEqual(1, 'Cart should have one condition');
|
||||
|
||||
Reference in New Issue
Block a user