1 | <?php |
||
21 | final class LocaleContext implements Context |
||
22 | { |
||
23 | /** @var HomePageInterface */ |
||
24 | private $homePage; |
||
25 | |||
26 | public function __construct(HomePageInterface $homePage) |
||
30 | |||
31 | /** |
||
32 | * @Given I switched the shop's locale to :locale |
||
33 | * @Given I have switched to the :locale locale |
||
34 | * @When I switch to the :locale locale |
||
35 | * @When I change my locale to :locale |
||
36 | */ |
||
37 | public function iSwitchTheLocaleToTheLocale(string $locale): void |
||
42 | |||
43 | /** |
||
44 | * @When I show homepage with the locale :localeCode |
||
45 | */ |
||
46 | public function iShowHomepageWithTheLocale(string $localeCode): void |
||
50 | |||
51 | /** |
||
52 | * @Then I should shop using the :locale locale |
||
53 | * @Then I should still shop using the :locale locale |
||
54 | */ |
||
55 | public function iShouldShopUsingTheLocale($locale) |
||
59 | |||
60 | /** |
||
61 | * @Then I should be able to shop using the :locale locale |
||
62 | * @Then the store should be available in the :locale locale |
||
63 | */ |
||
64 | public function iShouldBeAbleToShopUsingTheLocale($locale) |
||
68 | |||
69 | /** |
||
70 | * @Then I should not be able to shop using the :locale locale |
||
71 | * @Then the store should not be available in the :locale locale |
||
72 | */ |
||
73 | public function iShouldNotBeAbleToShopUsingTheLocale($locale) |
||
83 | |||
84 | /** |
||
85 | * @Then I should not be able to shop without default locale |
||
86 | */ |
||
87 | public function iShouldNotBeAbleToShop() |
||
96 | } |
||
97 |