Author: Łukasz Chruściel (lukasz.chrusciel@lakion.com)
Author: Anna Walasek (anna.walasek@lakion.com)
Inheritance: extends Sylius\Behat\Page\PageInterface
Exemple #1
0
 /**
  * @Then /^I should see "([^"]+)" with quantity (\d+) in my cart$/
  */
 public function iShouldSeeWithQuantityInMyCart($productName, $quantity)
 {
     Assert::same($this->summaryPage->getQuantity($productName), $quantity, 'The quantity of product should be %2$s, but it is %s');
 }
Exemple #2
0
 /**
  * @Then my cart's total should be :total
  */
 public function myCartSTotalShouldBe($total)
 {
     Assert::same($total, $this->summaryPage->getCartTotal(), 'Cart should have %s total, but it has %2$s.');
 }
Exemple #3
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);
 }