/** * @Given /^([^"]+) gives ("[^"]+%") off on the customer's (\d)(?:st|nd|rd|th) order$/ */ public function itGivesPercentageOffCustomersNthOrder(PromotionInterface $promotion, $discount, $nth) { $rule = $this->ruleFactory->createNthOrder((int) $nth); $this->createPercentagePromotion($promotion, $discount, [], $rule); }