1 | <?php |
||
24 | final class ManagingProductVariantsContext implements Context |
||
25 | { |
||
26 | /** |
||
27 | * @var Client |
||
28 | */ |
||
29 | private $client; |
||
30 | |||
31 | /** |
||
32 | * @var SessionInterface |
||
33 | */ |
||
34 | private $session; |
||
35 | |||
36 | /** |
||
37 | * @param Client $client |
||
38 | * @param SessionInterface $session |
||
39 | */ |
||
40 | public function __construct(Client $client, SessionInterface $session) |
||
45 | |||
46 | /** |
||
47 | * @When I look for a variant with :phrase in descriptor within the :product product |
||
48 | */ |
||
49 | public function iLookForVariantWithDescriptorWithinProduct($phrase, ProductInterface $product) |
||
60 | |||
61 | /** |
||
62 | * @Then /^I should see (\d+) product variants? on the list$/ |
||
63 | */ |
||
64 | public function iShouldSeeProductVariantsInTheList($number) |
||
68 | |||
69 | /** |
||
70 | * @Then I should see the product variant named :firstName on the list |
||
71 | * @Then I should see the product variants named :firstName and :secondName on the list |
||
72 | * @Then I should see the product variants named :firstName, :secondName and :thirdName on the list |
||
73 | * @Then I should see the product variants named :firstName, :secondName, :thirdName and :fourthName on the list |
||
74 | */ |
||
75 | public function iShouldSeeTheProductVariantNamedAnd(...$names) |
||
83 | |||
84 | /** |
||
85 | * @Then I should see the product variant labeled :label on the list |
||
86 | */ |
||
87 | public function iShouldSeeTheProductVariantLabeledAs($label) |
||
95 | |||
96 | /** |
||
97 | * @return mixed |
||
98 | */ |
||
99 | private function getJSONResponse() |
||
103 | } |
||
104 |