public iAddProductsToTheCart ( $quantity, Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public function iAddProductsToTheCart($quantity, ProductInterface $product)
{
$this->productShowPage->open(['slug' => $product->getSlug()]);
$this->productShowPage->addToCartWithQuantity($quantity);
$this->sharedStorage->set('product', $product);
}