Working : Coupon : Fix unit tests @todo refactor

This commit is contained in:
gmorel
2013-09-16 11:26:37 +02:00
parent d4d876c783
commit c49bfa4b25
5 changed files with 104 additions and 2 deletions

View File

@@ -69,10 +69,10 @@ class ConstraintValidator
/**
* Do variable comparison
*
* @param mixed $v1 Variable 1
* @param mixed $v1 Variable 1
* @param string $o Operator
* @param mixed $v2 Variable 2
*
* @param mixed $v2 Variable 2
* @throws \Exception
* @return bool
*/

View File

@@ -24,6 +24,7 @@
namespace Thelia\Constraint\Rule;
use Symfony\Component\Intl\Exception\NotImplementedException;
use Thelia\Constraint\ConstraintValidator;
use Thelia\Core\Translation\Translator;
use Thelia\Coupon\CouponAdapterInterface;
use Thelia\Constraint\Validator\ComparableInterface;
@@ -73,6 +74,9 @@ abstract class CouponRuleAbstract implements CouponRuleInterface
/** @var array Values set by Admin in BackOffice */
protected $values = array();
/** @var ConstraintValidator Constaints validator */
protected $constraintValidator = null;
/**
* Constructor
*