public isItemDiscounted ( string $productName ) : boolean | ||
$productName | string | |
return | boolean |
/** * @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.'); }