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

isItemDiscounted() public method

public isItemDiscounted ( string $productName ) : boolean
$productName string
return boolean
    public function isItemDiscounted($productName);

Usage Example

Ejemplo n.º 1
0
 /**
  * @Then /^(product "[^"]+") price should not be decreased$/
  * @Then /^(its|theirs) price should not be decreased$/
  */
 public function productPriceShouldNotBeDecreased(ProductInterface $product)
 {
     $this->summaryPage->open();
     Assert::false($this->summaryPage->isItemDiscounted($product->getName()), 'The price should not be decreased, but it is.');
 }