1 | <?php |
||
21 | final class ManagingLocalesContext implements Context |
||
22 | { |
||
23 | /** |
||
24 | * @var IndexPageInterface |
||
25 | */ |
||
26 | private $indexPage; |
||
27 | |||
28 | /** |
||
29 | * @var CreatePageInterface |
||
30 | */ |
||
31 | private $createPage; |
||
32 | |||
33 | /** |
||
34 | * @param IndexPageInterface $indexPage |
||
35 | * @param CreatePageInterface $createPage |
||
36 | */ |
||
37 | public function __construct(IndexPageInterface $indexPage, CreatePageInterface $createPage) |
||
42 | |||
43 | /** |
||
44 | * @Given I want to create a new locale |
||
45 | */ |
||
46 | public function iWantToCreateNewLocale() |
||
50 | |||
51 | /** |
||
52 | * @When I choose :name |
||
53 | */ |
||
54 | public function iChoose($name) |
||
58 | |||
59 | /** |
||
60 | * @When I add it |
||
61 | */ |
||
62 | public function iAdd() |
||
66 | |||
67 | /** |
||
68 | * @Then I should be notified about success |
||
69 | */ |
||
70 | public function iShouldBeNotifiedAboutSuccess() |
||
75 | |||
76 | /** |
||
77 | * @Then the store should be available in the :name language |
||
78 | */ |
||
79 | public function storeShouldBeAvailableInLanguage($name) |
||
83 | } |
||
84 |