diff --git a/core/lib/Thelia/Tests/Coupon/Type/RemoveXAmountTest.php b/core/lib/Thelia/Tests/Coupon/Type/RemoveXAmountTest.php index da349bb85..b2cd23e13 100644 --- a/core/lib/Thelia/Tests/Coupon/Type/RemoveXAmountTest.php +++ b/core/lib/Thelia/Tests/Coupon/Type/RemoveXAmountTest.php @@ -118,23 +118,23 @@ class RemoveXAmountTest extends \PHPUnit_Framework_TestCase $condition1 = new MatchForTotalAmount($stubFacade); $operators = array( - MatchForTotalAmount::INPUT1 => Operators::SUPERIOR, - MatchForTotalAmount::INPUT2 => Operators::EQUAL + MatchForTotalAmount::CART_TOTAL => Operators::SUPERIOR, + MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL ); $values = array( - MatchForTotalAmount::INPUT1 => 40.00, - MatchForTotalAmount::INPUT2 => 'EUR' + MatchForTotalAmount::CART_TOTAL => 40.00, + MatchForTotalAmount::CART_CURRENCY => 'EUR' ); $condition1->setValidatorsFromForm($operators, $values); $condition2 = new MatchForTotalAmount($stubFacade); $operators = array( - MatchForTotalAmount::INPUT1 => Operators::INFERIOR, - MatchForTotalAmount::INPUT2 => Operators::EQUAL + MatchForTotalAmount::CART_TOTAL => Operators::INFERIOR, + MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL ); $values = array( - MatchForTotalAmount::INPUT1 => 400.00, - MatchForTotalAmount::INPUT2 => 'EUR' + MatchForTotalAmount::CART_TOTAL => 400.00, + MatchForTotalAmount::CART_CURRENCY => 'EUR' ); $condition2->setValidatorsFromForm($operators, $values); diff --git a/core/lib/Thelia/Tests/Coupon/Type/RemoveXPercentTest.php b/core/lib/Thelia/Tests/Coupon/Type/RemoveXPercentTest.php index 4ddeb7d12..d22918b57 100644 --- a/core/lib/Thelia/Tests/Coupon/Type/RemoveXPercentTest.php +++ b/core/lib/Thelia/Tests/Coupon/Type/RemoveXPercentTest.php @@ -107,23 +107,23 @@ class RemoveXPercentTest extends \PHPUnit_Framework_TestCase $condition1 = new MatchForTotalAmount($stubFacade); $operators = array( - MatchForTotalAmount::INPUT1 => Operators::SUPERIOR, - MatchForTotalAmount::INPUT2 => Operators::EQUAL + MatchForTotalAmount::CART_TOTAL => Operators::SUPERIOR, + MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL ); $values = array( - MatchForTotalAmount::INPUT1 => 40.00, - MatchForTotalAmount::INPUT2 => 'EUR' + MatchForTotalAmount::CART_TOTAL => 40.00, + MatchForTotalAmount::CART_CURRENCY => 'EUR' ); $condition1->setValidatorsFromForm($operators, $values); $condition2 = new MatchForTotalAmount($stubFacade); $operators = array( - MatchForTotalAmount::INPUT1 => Operators::INFERIOR, - MatchForTotalAmount::INPUT2 => Operators::EQUAL + MatchForTotalAmount::CART_TOTAL => Operators::INFERIOR, + MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL ); $values = array( - MatchForTotalAmount::INPUT1 => 400.00, - MatchForTotalAmount::INPUT2 => 'EUR' + MatchForTotalAmount::CART_TOTAL => 400.00, + MatchForTotalAmount::CART_CURRENCY => 'EUR' ); $condition2->setValidatorsFromForm($operators, $values);