diff --git a/core/lib/Thelia/Condition/Implementation/MatchForTotalAmount.php b/core/lib/Thelia/Condition/Implementation/MatchForTotalAmount.php index 225157b38..d178b6298 100644 --- a/core/lib/Thelia/Condition/Implementation/MatchForTotalAmount.php +++ b/core/lib/Thelia/Condition/Implementation/MatchForTotalAmount.php @@ -93,7 +93,7 @@ class MatchForTotalAmount extends ConditionAbstract public function isMatching() { $condition1 = $this->conditionValidator->variableOpComparison( - $this->facade->getCartTotalPrice(), + $this->facade->getCartTotalTaxPrice(), $this->operators[self::CART_TOTAL], $this->values[self::CART_TOTAL] ); diff --git a/core/lib/Thelia/Tests/Condition/Implementation/MatchForTotalAmountTest.php b/core/lib/Thelia/Tests/Condition/Implementation/MatchForTotalAmountTest.php index fa599a866..f63cc5142 100644 --- a/core/lib/Thelia/Tests/Condition/Implementation/MatchForTotalAmountTest.php +++ b/core/lib/Thelia/Tests/Condition/Implementation/MatchForTotalAmountTest.php @@ -48,7 +48,7 @@ class MatchForTotalAmountTest extends \PHPUnit_Framework_TestCase ->getMock(); $stubFacade->expects($this->any()) - ->method('getCartTotalPrice') + ->method('getCartTotalTaxPrice') ->will($this->returnValue($cartTotalPrice)); $stubFacade->expects($this->any())