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