/** * @Then :promotionName should be applied to my order */ public function shouldBeAppliedToMyOrder($promotionName) { Assert::true($this->summaryPage->hasPromotion($promotionName), sprintf('The promotion %s should appear on the page, but it does not.', $promotionName)); }