1 | <?php |
||
13 | final class CheckoutOrderDetailsContext implements Context |
||
14 | { |
||
15 | /** |
||
16 | * @var ShowPageInterface |
||
17 | */ |
||
18 | private $orderDetails; |
||
19 | |||
20 | /** |
||
21 | * @param ShowPageInterface $orderDetails |
||
22 | */ |
||
23 | public function __construct(ShowPageInterface $orderDetails) |
||
27 | |||
28 | /** |
||
29 | * @When /^I want to browse order details for (this order)$/ |
||
30 | */ |
||
31 | public function iWantToBrowseOrderDetailsForThisOrder(OrderInterface $order) |
||
35 | |||
36 | /** |
||
37 | * @When I change payment method to :paymentMethodName |
||
38 | */ |
||
39 | public function iChangePaymentMethodTo($paymentMethodName) |
||
43 | |||
44 | /** |
||
45 | * @Then I should be able to pay (again) |
||
46 | */ |
||
47 | public function iShouldBeAbleToPay() |
||
51 | |||
52 | /** |
||
53 | * @Then I should not be able to pay (again) |
||
54 | */ |
||
55 | public function iShouldNotBeAbleToPay() |
||
59 | } |
||
60 |