Esempio n. 1
0
 /**
  * @Given /^([^"]+) gives ("[^"]+%") off on every product (classified as "[^"]+") if an order contains any product (classified as "[^"]+")$/
  */
 public function itGivesPercentageOffOnEveryProductClassifiedAsIfAnOrderContainsAnyProductClassifiedAs(PromotionInterface $promotion, $discount, TaxonInterface $discountTaxon, TaxonInterface $targetTaxon)
 {
     $rule = $this->ruleFactory->createContainsTaxon($targetTaxon->getCode(), 1);
     $this->createUnitPercentagePromotion($promotion, $discount, $this->getTaxonFilterConfiguration([$discountTaxon->getCode()]), $rule);
 }