/** * @Given /^([^"]+) gives ("(?:€|£|\$)[^"]+") discount to every order with quantity at least ([^"]+)$/ */ public function itGivesFixedDiscountToEveryOrderWithQuantityAtLeast(PromotionInterface $promotion, $discount, $quantity) { $rule = $this->ruleFactory->createCartQuantity((int) $quantity); $this->createFixedPromotion($promotion, $discount, [], $rule); }