/** * {@inheritdoc} */ protected function getValidators() { $quoteProductOfferConstraint = new Constraints\QuoteProductOffer(); return [$quoteProductOfferConstraint->validatedBy() => new Constraints\QuoteProductOfferValidator()]; }
public function testConfiguration() { $this->assertEquals('orob2b_sale.validator.quote_product_unit', $this->constraint->validatedBy()); $this->assertEquals([Constraint::CLASS_CONSTRAINT], $this->constraint->getTargets()); }