1 | <?php |
||
21 | final class CheckoutOrderDetailsContext implements Context |
||
22 | { |
||
23 | /** |
||
24 | * @var ShowPageInterface |
||
25 | */ |
||
26 | private $orderDetails; |
||
27 | |||
28 | /** |
||
29 | * @param ShowPageInterface $orderDetails |
||
30 | */ |
||
31 | public function __construct(ShowPageInterface $orderDetails) |
||
35 | |||
36 | /** |
||
37 | * @When /^I want to browse order details for (this order)$/ |
||
38 | */ |
||
39 | public function iWantToBrowseOrderDetailsForThisOrder(OrderInterface $order) |
||
43 | |||
44 | /** |
||
45 | * @When I try to pay with :paymentMethodName payment method |
||
46 | */ |
||
47 | public function iChangePaymentMethodTo($paymentMethodName) |
||
52 | |||
53 | /** |
||
54 | * @Then I should be able to pay (again) |
||
55 | */ |
||
56 | public function iShouldBeAbleToPay() |
||
60 | |||
61 | /** |
||
62 | * @Then I should not be able to pay (again) |
||
63 | */ |
||
64 | public function iShouldNotBeAbleToPay() |
||
68 | |||
69 | /** |
||
70 | * @Then I should see :quantity as number of items |
||
71 | */ |
||
72 | public function iShouldSeeAsNumberOfItems(int $quantity): void |
||
76 | } |
||
77 |