1 | <?php |
||
26 | final class ManagingPaymentsContext implements Context |
||
27 | { |
||
28 | /** @var ApiClientInterface */ |
||
29 | private $client; |
||
30 | |||
31 | /** @var IriConverterInterface */ |
||
32 | private $iriConverter; |
||
33 | |||
34 | public function __construct(ApiClientInterface $client, IriConverterInterface $iriConverter) |
||
39 | |||
40 | /** |
||
41 | * @Given I am browsing payments |
||
42 | * @When I browse payments |
||
43 | */ |
||
44 | public function iAmBrowsingPayments(): void |
||
48 | |||
49 | /** |
||
50 | * @When I complete the payment of order :order |
||
51 | */ |
||
52 | public function iCompleteThePaymentOfOrder(OrderInterface $order): void |
||
63 | |||
64 | /** |
||
65 | * @When I choose :state as a payment state |
||
66 | */ |
||
67 | public function iChooseAsAPaymentState(string $state): void |
||
71 | |||
72 | /** |
||
73 | * @When I filter |
||
74 | */ |
||
75 | public function iFilter(): void |
||
79 | |||
80 | /** |
||
81 | * @Then I should see a single payment in the list |
||
82 | * @Then I should see :count payments in the list |
||
83 | */ |
||
84 | public function iShouldSeePaymentsInTheList(int $count = 1): void |
||
88 | |||
89 | /** |
||
90 | * @Then the payment of the :orderNumber order should be :paymentState for :customer |
||
91 | */ |
||
92 | public function thePaymentOfTheOrderShouldBeFor( |
||
109 | |||
110 | /** |
||
111 | * @Then /^I should see payment for (the "[^"]+" order) as (\d+)(?:|st|nd|rd|th) in the list$/ |
||
112 | */ |
||
113 | public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber, int $position): void |
||
119 | |||
120 | /** |
||
121 | * @Then I should be notified that the payment has been completed |
||
122 | */ |
||
123 | public function iShouldBeNotifiedThatThePaymentHasBeenCompleted(): void |
||
127 | |||
128 | /** |
||
129 | * @Then I should see the payment of order :order as :paymentState |
||
130 | */ |
||
131 | public function iShouldSeeThePaymentOfOrderAs(OrderInterface $order, string $paymentState): void |
||
139 | |||
140 | /** |
||
141 | * @Then I should see (also) the payment of the :order order |
||
142 | */ |
||
143 | public function iShouldSeeThePaymentOfTheOrder(OrderInterface $order): void |
||
147 | |||
148 | /** |
||
149 | * @Then I should not see the payment of the :order order |
||
150 | */ |
||
151 | public function iShouldNotSeeThePaymentOfTheOrder(OrderInterface $order): void |
||
155 | } |
||
156 |