public function hasProductUnitPrice(ProductInterface $product, $price);
/** * @Then the :product product should have unit price :price */ public function theProductShouldHaveUnitPrice(ProductInterface $product, $price) { Assert::true($this->completePage->hasProductUnitPrice($product, $price), sprintf('Product %s should have unit price %s, but it does not have.', $product->getName(), $price)); }