/** * @Then /^(this coupon) should still exist in the registry$/ */ public function couponShouldStillExistInTheRegistry(PromotionCouponInterface $coupon) { Assert::true($this->indexPage->isSingleResourceOnPage(['code' => $coupon->getCode()]), sprintf('Coupon with code %s should exist.', $coupon->getCode())); }