/** * @Given /^(this coupon) can be used (\d+) times?$/ */ public function thisCouponCanBeUsedNTimes(PromotionCouponInterface $coupon, $usageLimit) { $coupon->setUsageLimit($usageLimit); $this->objectManager->flush(); }