/** * @Then the promotion :promotion should be used :usage time(s) */ public function thePromotionShouldBeUsedTime(PromotionInterface $promotion, $usage) { Assert::same((int) $usage, $this->indexPage->getUsageNumber($promotion), 'Promotion should be used %s times, but is %2$s.'); }