Sylius\Behat\Page\Shop\Product\ShowPageInterface::addToCartWithQuantity PHP Method

addToCartWithQuantity() public method

public addToCartWithQuantity ( string $quantity )
$quantity string
    public function addToCartWithQuantity($quantity);

Usage Example

Ejemplo n.º 1
0
 /**
  * @Given /^I have(?:| added) (\d+) (products "([^"]+)") (?:to|in) the cart$/
  * @When /^I add(?:|ed)(?:| again) (\d+) (products "([^"]+)") to the cart$/
  */
 public function iAddProductsToTheCart($quantity, ProductInterface $product)
 {
     $this->productShowPage->open(['slug' => $product->getSlug()]);
     $this->productShowPage->addToCartWithQuantity($quantity);
     $this->sharedStorage->set('product', $product);
 }
All Usage Examples Of Sylius\Behat\Page\Shop\Product\ShowPageInterface::addToCartWithQuantity