Author: Mateusz Zalewski (mateusz.zalewski@lakion.com)
Inheritance: extends Sylius\Behat\Page\SymfonyPageInterface
Example #1
0
 /**
  * @Then I should see :provinceName in the billing address
  */
 public function iShouldSeeInTheBillingAddress($provinceName)
 {
     Assert::true($this->completePage->hasBillingProvinceName($provinceName), sprintf('Cannot find billing address with province %s', $provinceName));
 }
Example #2
0
 /**
  * @When /^I confirm my order with paypal payment$/
  * @Given /^I have confirmed my order with paypal payment$/
  */
 public function iConfirmMyOrderWithPaypalPayment()
 {
     $this->paypalApiMocker->performActionInApiInitializeScope(function () {
         $this->summaryPage->confirmOrder();
     });
 }
Example #3
0
 /**
  * @Then /^I should not be notified that (this product) does not have sufficient stock$/
  */
 public function iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product)
 {
     Assert::false($this->completePage->hasProductOutOfStockValidationMessage($product), sprintf('I should see validation message for %s product', $product->getName()));
 }
Example #4
0
 /**
  * @Given /^I confirm my order with paypal payment$/
  */
 public function iConfirmMyOrderWithPaypalPayment()
 {
     $this->paypalApiMocker->mockApiPaymentInitializeResponse();
     $this->summaryPage->confirmOrder();
 }
Example #5
0
 /**
  * @Then my order's currency should be :currencyCode
  */
 public function myOrderSCurrencyShouldBe($currencyCode)
 {
     Assert::true($this->completePage->hasCurrency($currencyCode), 'Order currency code is improper.');
 }