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