1 | <?php |
||
28 | final class ManagingChannelsContext implements Context |
||
29 | { |
||
30 | /** @var ApiClientInterface */ |
||
31 | private $client; |
||
32 | |||
33 | /** @var ResponseCheckerInterface */ |
||
34 | private $responseChecker; |
||
35 | |||
36 | /** @var IriConverterInterface */ |
||
37 | private $iriConverter; |
||
38 | |||
39 | /** @var array */ |
||
40 | private $shopBillingData = []; |
||
41 | |||
42 | public function __construct( |
||
51 | |||
52 | /** |
||
53 | * @When I want to create a new channel |
||
54 | */ |
||
55 | public function iWantToCreateANewChannel(): void |
||
59 | |||
60 | /** |
||
61 | * @When I specify its :field as :value |
||
62 | * @When I :field it :value |
||
63 | * @When I set its :field as :value |
||
64 | * @When I define its :field as :value |
||
65 | */ |
||
66 | public function iSpecifyItsAs(string $field, string $value): void |
||
70 | |||
71 | /** |
||
72 | * @When I choose :currency as the base currency |
||
73 | */ |
||
74 | public function iChooseAsTheBaseCurrency(CurrencyInterface $currency): void |
||
78 | |||
79 | /** |
||
80 | * @When I choose :locale as a default locale |
||
81 | */ |
||
82 | public function iChooseAsADefaultLocale(LocaleInterface $locale): void |
||
86 | |||
87 | /** |
||
88 | * @When I describe it as :description |
||
89 | */ |
||
90 | public function iDescribeItAs(string $description): void |
||
94 | |||
95 | /** |
||
96 | * @When I set its contact email as :contactEmail |
||
97 | */ |
||
98 | public function iSetItsContactEmailAs(string $contactEmail): void |
||
102 | |||
103 | /** |
||
104 | * @When I choose :country and :otherCountry as operating countries |
||
105 | */ |
||
106 | public function iChooseAndAsOperatingCountries(CountryInterface $country, CountryInterface $otherCountry): void |
||
113 | |||
114 | /** |
||
115 | * @When I allow to skip shipping step if only one shipping method is available |
||
116 | */ |
||
117 | public function iAllowToSkipShippingStepIfOnlyOneShippingMethodIsAvailable(): void |
||
121 | |||
122 | /** |
||
123 | * @When I allow to skip payment step if only one payment method is available |
||
124 | */ |
||
125 | public function iAllowToSkipPaymentStepIfOnlyOnePaymentMethodIsAvailable(): void |
||
129 | |||
130 | /** |
||
131 | * @When I specify menu taxon as :taxon |
||
132 | */ |
||
133 | public function iSpecifyMenuTaxonAs(TaxonInterface $taxon): void |
||
137 | |||
138 | /** |
||
139 | * @When I specify company as :company |
||
140 | */ |
||
141 | public function iSpecifyCompanyAs(string $company): void |
||
145 | |||
146 | /** |
||
147 | * @When I specify tax ID as :taxId |
||
148 | */ |
||
149 | public function iSpecifyTaxIdAs(string $taxId): void |
||
153 | |||
154 | /** |
||
155 | * @When I specify shop billing address as :street, :postcode :city, :country |
||
156 | */ |
||
157 | public function specifyShopBillingAddressAs( |
||
168 | |||
169 | /** |
||
170 | * @When I select the :taxCalculationStrategy as tax calculation strategy |
||
171 | */ |
||
172 | public function iSelectTaxCalculationStrategy(string $taxCalculationStrategy): void |
||
176 | |||
177 | /** |
||
178 | * @When I add it |
||
179 | */ |
||
180 | public function iAddIt(): void |
||
186 | |||
187 | /** |
||
188 | * @When I want to browse channels |
||
189 | */ |
||
190 | public function iWantToBrowseChannels(): void |
||
194 | |||
195 | /** |
||
196 | * @Then I should be notified that it has been successfully created |
||
197 | */ |
||
198 | public function iShouldBeNotifiedThatItHasBeenSuccessfullyCreated(): void |
||
205 | |||
206 | /** |
||
207 | * @Then the channel :name should appear in the registry |
||
208 | * @Then the channel :name should be in the registry |
||
209 | */ |
||
210 | public function theChannelShouldAppearInTheRegistry(string $name): void |
||
217 | |||
218 | /** |
||
219 | * @Then the channel :channel should have :taxon as a menu taxon |
||
220 | */ |
||
221 | public function theChannelShouldHaveAsAMenuTaxon(ChannelInterface $channel, TaxonInterface $taxon): void |
||
229 | |||
230 | /** |
||
231 | * @Then I should see :count channels in the list |
||
232 | */ |
||
233 | public function iShouldSeeChannelsInTheList(int $count): void |
||
237 | } |
||
238 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: