Exemplo n.º 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()));
 }
Exemplo n.º 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.');
 }
Exemplo n.º 3
0
 /**
  * @Given /^I confirm my order with paypal payment$/
  */
 public function iConfirmMyOrderWithPaypalPayment()
 {
     $this->paypalApiMocker->mockApiPaymentInitializeResponse();
     $this->summaryPage->confirmOrder();
 }