1 | <?php |
||
13 | final class CheckoutThankYouContext implements Context |
||
14 | { |
||
15 | /** |
||
16 | * @var ThankYouPageInterface |
||
17 | */ |
||
18 | private $thankYouPage; |
||
19 | |||
20 | /** |
||
21 | * @param ThankYouPageInterface $thankYouPage |
||
22 | */ |
||
23 | public function __construct(ThankYouPageInterface $thankYouPage) |
||
27 | |||
28 | /** |
||
29 | * @Then I should see the thank you page |
||
30 | */ |
||
31 | public function iShouldSeeTheThankYouPage() |
||
35 | |||
36 | /** |
||
37 | * @Then I should see the thank you page in :localeCode |
||
38 | */ |
||
39 | public function iShouldSeeTheThankYouPageInLocale($localeCode) |
||
43 | |||
44 | /** |
||
45 | * @Then I should not see the thank you page |
||
46 | */ |
||
47 | public function iShouldNotSeeTheThankYouPage() |
||
51 | |||
52 | /** |
||
53 | * @Then I should be informed with :paymentMethod payment method instructions |
||
54 | */ |
||
55 | public function iShouldBeInformedWithPaymentMethodInstructions(PaymentMethodInterface $paymentMethod) |
||
59 | |||
60 | /** |
||
61 | * @Then I should not see any instructions about payment method |
||
62 | */ |
||
63 | public function iShouldNotSeeAnyInstructionsAboutPaymentMethod() |
||
67 | |||
68 | /** |
||
69 | * @Then I should not be able to change payment method |
||
70 | */ |
||
71 | public function iShouldNotBeAbleToChangeMyPaymentMethod() |
||
75 | } |
||
76 |