/** * @Then /^(this promotion) should be coupon based$/ */ public function thisPromotionShouldBeCouponBased(PromotionInterface $promotion) { Assert::true($this->indexPage->isCouponBasedFor($promotion), sprintf('Promotion with name "%s" should be coupon based', $promotion->getName())); }