/** * @Then the product named :productName should be in the items list */ public function theProductShouldBeInTheItemsList($productName) { Assert::true($this->showPage->isProductInTheList($productName), sprintf('Product %s is not in the item list.', $productName)); }