1 | <?php |
||
27 | final class ManagingShipmentsContext implements Context |
||
28 | { |
||
29 | /** @var IndexPageInterface */ |
||
30 | private $indexPage; |
||
31 | |||
32 | /** @var OrderShowPageInterface */ |
||
33 | private $orderShowPage; |
||
34 | |||
35 | /** @var NotificationCheckerInterface */ |
||
36 | private $notificationChecker; |
||
37 | |||
38 | /** @var ShowPageInterface */ |
||
39 | private $showPage; |
||
40 | |||
41 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * @When I browse shipments |
||
55 | */ |
||
56 | public function iBrowseShipments(): void |
||
60 | |||
61 | /** |
||
62 | * @Then the shipment of the :orderNumber order should be :shippingState for :customer |
||
63 | * @Then the shipment of the :orderNumber order should be :shippingState for :customer in :channel channel |
||
64 | */ |
||
65 | public function shipmentOfOrderShouldBe( |
||
83 | |||
84 | /** |
||
85 | * @When I choose :shipmentState as a shipment state |
||
86 | */ |
||
87 | public function iChooseShipmentState(string $shipmentState): void |
||
91 | |||
92 | /** |
||
93 | * @When I choose :channelName as a channel filter |
||
94 | */ |
||
95 | public function iChooseChannelAsAChannelFilter(string $channelName): void |
||
99 | |||
100 | /** |
||
101 | * @When I filter |
||
102 | */ |
||
103 | public function iFilter(): void |
||
107 | |||
108 | /** |
||
109 | * @When I view the first shipment of the order :order |
||
110 | */ |
||
111 | public function iViewTheShipmentOfTheOrder(OrderInterface $order): void |
||
115 | |||
116 | /** |
||
117 | * @Then I should see( only) :count shipment(s) in the list |
||
118 | * @Then I should see a single shipment in the list |
||
119 | */ |
||
120 | public function iShouldSeeCountShipmentsInList(int $count = 1): void |
||
124 | |||
125 | /** |
||
126 | * @Then I should see a shipment of order :orderNumber |
||
127 | */ |
||
128 | public function iShouldSeeShipmentWithOrderNumber(string $orderNumber): void |
||
132 | |||
133 | /** |
||
134 | * @Then I should not see a shipment of order :orderNumber |
||
135 | */ |
||
136 | public function iShouldNotSeeShipmentWithOrderNumber(string $orderNumber): void |
||
140 | |||
141 | /** |
||
142 | * @When I ship the shipment of order :orderNumber |
||
143 | */ |
||
144 | public function iShipShipmentOfOrder(string $orderNumber): void |
||
148 | |||
149 | /** |
||
150 | * @Then I should see the shipment of order :orderNumber as :shippingState |
||
151 | */ |
||
152 | public function iShouldSeeTheShipmentOfOrderAs(string $orderNumber, string $shippingState): void |
||
156 | |||
157 | /** |
||
158 | * @Then I should be notified that the shipment has been successfully shipped |
||
159 | */ |
||
160 | public function iShouldBeNotifiedThatTheShipmentHasBeenSuccessfullyShipped(): void |
||
164 | |||
165 | /** |
||
166 | * @When I move to the details of first shipment's order |
||
167 | */ |
||
168 | public function iMoveToDetailsOfFirstShipment(): void |
||
172 | |||
173 | /** |
||
174 | * @When I ship the shipment of order :orderNumber with :trackingCode tracking code |
||
175 | */ |
||
176 | public function iShipTheShipmentOfOrderWithTrackingCode(string $orderNumber, string $trackingCode): void |
||
180 | |||
181 | /** |
||
182 | * @Then I should see order page with details of order :order |
||
183 | */ |
||
184 | public function iShouldSeeOrderPageWithDetailsOfOrder(OrderInterface $order): void |
||
188 | |||
189 | /** |
||
190 | * @Then /^I should see shipment for (the "[^"]+" order) as (\d+)(?:|st|nd|rd|th) in the list$/ |
||
191 | */ |
||
192 | public function iShouldSeeShipmentForTheOrderInTheList(string $orderNumber, int $position): void |
||
196 | |||
197 | /** |
||
198 | * @Then I should see :amount :product units in the list |
||
199 | */ |
||
200 | public function iShouldSeeUnitsInTheList(int $amount, string $productName): void |
||
204 | |||
205 | /** |
||
206 | * @Then I should see the shipment of order :orderNumber shipped at :dateTime |
||
207 | */ |
||
208 | public function iShouldSeeTheShippingDateAs(string $orderNumber, string $dateTime): void |
||
212 | } |
||
213 |