Using taxed cart total instead of untaxed price
This commit is contained in:
@@ -93,7 +93,7 @@ class MatchForTotalAmount extends ConditionAbstract
|
|||||||
public function isMatching()
|
public function isMatching()
|
||||||
{
|
{
|
||||||
$condition1 = $this->conditionValidator->variableOpComparison(
|
$condition1 = $this->conditionValidator->variableOpComparison(
|
||||||
$this->facade->getCartTotalPrice(),
|
$this->facade->getCartTotalTaxPrice(),
|
||||||
$this->operators[self::CART_TOTAL],
|
$this->operators[self::CART_TOTAL],
|
||||||
$this->values[self::CART_TOTAL]
|
$this->values[self::CART_TOTAL]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class MatchForTotalAmountTest extends \PHPUnit_Framework_TestCase
|
|||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
$stubFacade->expects($this->any())
|
$stubFacade->expects($this->any())
|
||||||
->method('getCartTotalPrice')
|
->method('getCartTotalTaxPrice')
|
||||||
->will($this->returnValue($cartTotalPrice));
|
->will($this->returnValue($cartTotalPrice));
|
||||||
|
|
||||||
$stubFacade->expects($this->any())
|
$stubFacade->expects($this->any())
|
||||||
|
|||||||
Reference in New Issue
Block a user