/** * @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); }