/** * @Then total price of :productName item should be :productPrice */ public function thisItemPriceShouldBe($productName, $productPrice) { $this->summaryPage->open(); Assert::same($this->summaryPage->getItemTotal($productName), $productPrice); }
/** * @Given /^(product "[^"]+") 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.'); }