1 | <?php |
||
22 | final class ManagingCountriesContext implements Context |
||
23 | { |
||
24 | /** |
||
25 | * @var IndexPageInterface |
||
26 | */ |
||
27 | private $countryIndexPage; |
||
28 | |||
29 | /** |
||
30 | * @var CreatePageInterface |
||
31 | */ |
||
32 | private $countryCreatePage; |
||
33 | |||
34 | /** |
||
35 | * @param IndexPageInterface $countryIndexPage |
||
36 | * @param CreatePageInterface $countryCreatePage |
||
37 | */ |
||
38 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @Given I want to create new country |
||
48 | */ |
||
49 | public function iWantToCreateNewCountry() |
||
53 | |||
54 | /** |
||
55 | * @When /^I choose "([^"]*)"$/ |
||
56 | */ |
||
57 | public function iChoose($name) |
||
61 | |||
62 | /** |
||
63 | * @When I add it |
||
64 | */ |
||
65 | public function iAddIt() |
||
69 | |||
70 | /** |
||
71 | * @Then I should be notified about success |
||
72 | */ |
||
73 | public function iShouldBeNotifiedAboutSuccess() |
||
78 | |||
79 | /** |
||
80 | * @Given /^(country "([^"]*)") should appear in the store$/ |
||
81 | */ |
||
82 | public function countryWithNameShouldAppearInTheStore(CountryInterface $country) |
||
86 | } |
||
87 |