diff --git a/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php b/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php index b14f781bb..79bf4ba9a 100644 --- a/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php +++ b/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php @@ -75,23 +75,23 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua $condition1 = new MatchForTotalAmount($facade); $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($facade); $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); @@ -339,23 +339,23 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua $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); @@ -394,23 +394,23 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua $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); @@ -459,23 +459,23 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua $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);