Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasItemWithProductAndQuantity PHP Method

hasItemWithProductAndQuantity() public method

public hasItemWithProductAndQuantity ( string $productName, string $quantity ) : boolean
$productName string
$quantity string
return boolean
    public function hasItemWithProductAndQuantity($productName, $quantity);

Usage Example

Example #1
0
 /**
  * @Given I should have :quantity :productName products in the cart
  */
 public function iShouldHaveProductsInTheCart($quantity, $productName)
 {
     Assert::true($this->completePage->hasItemWithProductAndQuantity($productName, $quantity), sprintf('There is no "%s" with quantity %s on order summary page, but it should.', $productName, $quantity));
 }