Exemple #1
0
 /**
  * @Then total price of :productName item should be :productPrice
  */
 public function thisItemPriceShouldBe($productName, $productPrice)
 {
     $this->summaryPage->open();
     Assert::same($this->summaryPage->getItemTotal($productName), $productPrice);
 }
Exemple #2
0
 /**
  * @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.');
 }