fix tests

This commit is contained in:
Joel Male
2024-09-04 09:16:15 +10:00
parent 7ee26add8d
commit ab9eb6c873
2 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -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');