/** * @Given /^(this coupon) expires tomorrow$/ */ public function thisCouponExpiresTomorrow(PromotionCouponInterface $coupon) { $coupon->setExpiresAt(new \DateTime('tomorrow')); $this->objectManager->flush(); }