1 | <?php |
||
20 | final class ManagingCurrenciesContext implements Context |
||
21 | { |
||
22 | /** @var ApiClientInterface */ |
||
23 | private $client; |
||
24 | |||
25 | public function __construct(ApiClientInterface $client) |
||
29 | |||
30 | /** |
||
31 | * @When I want to browse currencies of the store |
||
32 | */ |
||
33 | public function iWantToSeeAllCurrenciesInStore(): void |
||
37 | |||
38 | /** |
||
39 | * @When I want to add a new currency |
||
40 | */ |
||
41 | public function iWantToAddNewCurrency(): void |
||
45 | |||
46 | /** |
||
47 | * @When I choose :currencyCode |
||
48 | */ |
||
49 | public function iChoose(string $currencyCode): void |
||
53 | |||
54 | /** |
||
55 | * @When I add it |
||
56 | * @When I try to add it |
||
57 | */ |
||
58 | public function iAddIt(): void |
||
62 | |||
63 | /** |
||
64 | * @Then I should see :count currencies in the list |
||
65 | */ |
||
66 | public function iShouldSeeCurrenciesInTheList(int $count): void |
||
72 | |||
73 | /** |
||
74 | * @Then I should see the currency :currencyName in the list |
||
75 | * @Then the currency :currencyName should appear in the store |
||
76 | */ |
||
77 | public function currencyShouldAppearInTheStore(string $currencyName): void |
||
85 | |||
86 | /** |
||
87 | * @Then there should still be only one currency with code :code |
||
88 | */ |
||
89 | public function thereShouldStillBeOnlyOneCurrencyWithCode(string $code): void |
||
95 | |||
96 | /** |
||
97 | * @Then I should be notified that currency code must be unique |
||
98 | */ |
||
99 | public function iShouldBeNotifiedThatCurrencyCodeMustBeUnique(): void |
||
104 | } |
||
105 |