/** * @Given I added product :product to the cart * @Given /^I (?:have|had) (product "([^"]+)") in the cart$/ * @When I add product :product to the cart */ public function iAddProductToTheCart(ProductInterface $product) { $this->productShowPage->open(['product' => $product]); $this->productShowPage->addToCart(); }