Changed condition parameter names

This commit is contained in:
Franck Allimant
2014-05-10 01:32:14 +02:00
parent d14321ffd8
commit 612613fd71
2 changed files with 16 additions and 16 deletions

View File

@@ -118,23 +118,23 @@ class RemoveXAmountTest extends \PHPUnit_Framework_TestCase
$condition1 = new MatchForTotalAmount($stubFacade); $condition1 = new MatchForTotalAmount($stubFacade);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::SUPERIOR, MatchForTotalAmount::CART_TOTAL => Operators::SUPERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 40.00, MatchForTotalAmount::CART_TOTAL => 40.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition1->setValidatorsFromForm($operators, $values); $condition1->setValidatorsFromForm($operators, $values);
$condition2 = new MatchForTotalAmount($stubFacade); $condition2 = new MatchForTotalAmount($stubFacade);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::INFERIOR, MatchForTotalAmount::CART_TOTAL => Operators::INFERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 400.00, MatchForTotalAmount::CART_TOTAL => 400.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition2->setValidatorsFromForm($operators, $values); $condition2->setValidatorsFromForm($operators, $values);

View File

@@ -107,23 +107,23 @@ class RemoveXPercentTest extends \PHPUnit_Framework_TestCase
$condition1 = new MatchForTotalAmount($stubFacade); $condition1 = new MatchForTotalAmount($stubFacade);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::SUPERIOR, MatchForTotalAmount::CART_TOTAL => Operators::SUPERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 40.00, MatchForTotalAmount::CART_TOTAL => 40.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition1->setValidatorsFromForm($operators, $values); $condition1->setValidatorsFromForm($operators, $values);
$condition2 = new MatchForTotalAmount($stubFacade); $condition2 = new MatchForTotalAmount($stubFacade);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::INFERIOR, MatchForTotalAmount::CART_TOTAL => Operators::INFERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 400.00, MatchForTotalAmount::CART_TOTAL => 400.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition2->setValidatorsFromForm($operators, $values); $condition2->setValidatorsFromForm($operators, $values);