Exemple #1
0
 /**
  * @Then my order's payment method should be :paymentMethod
  */
 public function myOrderSPaymentMethodShouldBe(PaymentMethodInterface $paymentMethod)
 {
     Assert::true($this->summaryPage->hasPaymentMethod($paymentMethod), sprintf('I should see %s payment method, but i do not.', $paymentMethod->getName()));
 }
Exemple #2
0
 /**
  * @Given I should be able to go to the summary page again
  */
 public function iShouldBeAbleToGoToTheSummaryPageAgain()
 {
     $this->paymentPage->nextStep();
     Assert::true($this->summaryPage->isOpen(), 'Checkout summary page should be opened, but it is not.');
 }
Exemple #3
0
 /**
  * @Given /^I confirm my order with paypal payment$/
  */
 public function iConfirmMyOrderWithPaypalPayment()
 {
     $this->paypalApiMocker->mockApiPaymentInitializeResponse();
     $this->summaryPage->confirmOrder();
 }