public addToCartWithOption ( Sylius\Component\Product\Model\ProductOptionInterface $option, string $optionValue ) | ||
$option | Sylius\Component\Product\Model\ProductOptionInterface | |
$optionValue | string |
/** * @Given I have :product with :productOption :productOptionValue in the cart * @When I add :product with :productOption :productOptionValue to the cart */ public function iAddThisProductWithToTheCart(ProductInterface $product, ProductOptionInterface $productOption, $productOptionValue) { $this->productShowPage->open(['slug' => $product->getSlug()]); $this->productShowPage->addToCartWithOption($productOption, $productOptionValue); }