1 | <?php |
||
24 | final class ManagingShippingMethodsContext implements Context |
||
25 | { |
||
26 | /** |
||
27 | * @var SharedStorageInterface |
||
28 | */ |
||
29 | private $sharedStorage; |
||
30 | |||
31 | /** |
||
32 | * @var ShowPageInterface |
||
33 | */ |
||
34 | private $shippingMethodShowPage; |
||
35 | |||
36 | /** |
||
37 | * @var IndexPageInterface |
||
38 | */ |
||
39 | private $shippingMethodIndexPage; |
||
40 | |||
41 | /** |
||
42 | * @param SharedStorageInterface $sharedStorage |
||
43 | * @param ShowPageInterface $shippingMethodDetailsPage |
||
44 | * @param IndexPageInterface $shippingMethodIndexPage |
||
45 | */ |
||
46 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * @When /^I try to delete ("[^"]+" shipping method)$/ |
||
58 | */ |
||
59 | public function iTryToDeleteShippingMethod(ShippingMethodInterface $shippingMethod) |
||
66 | |||
67 | /** |
||
68 | * @Then I should be notified that it is in use |
||
69 | */ |
||
70 | public function iShouldBeNotifiedItIsUsed() |
||
76 | |||
77 | /** |
||
78 | * @Then :it should be successfully removed |
||
79 | */ |
||
80 | public function shippingMethodShouldBeRemoved(ShippingMethodInterface $shippingMethod) |
||
86 | |||
87 | /** |
||
88 | * @Then :it should not be removed |
||
89 | */ |
||
90 | public function shippingMethodShouldNotBeRemoved(ShippingMethodInterface $shippingMethod) |
||
98 | } |
||
99 |