Sylius\Behat\Context\Ui\Shop\CartContext::thisItemShouldHaveOptionValue PHP Method

thisItemShouldHaveOptionValue() public method

public thisItemShouldHaveOptionValue ( Sylius\Component\Product\Model\ProductInterface $product, $optionName, $optionValue )
$product Sylius\Component\Product\Model\ProductInterface
    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));
    }