Sylius\Behat\Page\Shop\Cart\SummaryPageInterface::hasItemWithOptionValue PHP Method

hasItemWithOptionValue() public method

public hasItemWithOptionValue ( string $productName, string $optionName, string $optionValue ) : string
$productName string
$optionName string
$optionValue string
return string
    public function hasItemWithOptionValue($productName, $optionName, $optionValue);

Usage Example

Ejemplo n.º 1
0
 /**
  * @Given /^(this product) should have ([^"]+) "([^"]+)"$/
  */
 public function thisItemShouldHaveOptionValue(ProductInterface $product, $optionName, $optionValue)
 {
     Assert::true($this->summaryPage->hasItemWithOptionValue($product->getName(), $optionName, $optionValue), sprintf('Product in cart "%s" should have option %s with value %s, but it has not.', $product->getName(), $optionName, $optionValue));
 }