コード例 #1
0
ファイル: PromotionContext.php プロジェクト: loic425/Sylius
 /**
  * @Given /^([^"]+) gives ("(?:€|£|\$)[^"]+") off if order contains products (classified as "[^"]+") with a minimum value of ("(?:€|£|\$)[^"]+")$/
  */
 public function thePromotionGivesOffIfOrderContainsProductsClassifiedAsAndPricedAt(PromotionInterface $promotion, $discount, TaxonInterface $taxon, $amount)
 {
     $rule = $this->ruleFactory->createItemsFromTaxonTotal($taxon->getCode(), $amount);
     $this->createFixedPromotion($promotion, $discount, [], $rule);
 }