/** * @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)); }
/** * @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(); }); }
/** * @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())); }
/** * @Given /^I confirm my order with paypal payment$/ */ public function iConfirmMyOrderWithPaypalPayment() { $this->paypalApiMocker->mockApiPaymentInitializeResponse(); $this->summaryPage->confirmOrder(); }
/** * @Then my order's currency should be :currencyCode */ public function myOrderSCurrencyShouldBe($currencyCode) { Assert::true($this->completePage->hasCurrency($currencyCode), 'Order currency code is improper.'); }