addToCartWithQuantity() 공개 메소드

public addToCartWithQuantity ( string $quantity )
$quantity string
예제 #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);
 }
예제 #2
0
 /**
  * @Given I have :quantity products :product in the cart
  * @When I add :quantity products :product to the cart
  */
 public function iAddProductsToTheCart(ProductInterface $product, $quantity)
 {
     $this->productShowPage->open(['product' => $product]);
     $this->productShowPage->addToCartWithQuantity($quantity);
     $this->sharedStorage->set('product', $product);
 }