function it_opens_country_update_page(UpdatePageInterface $countryUpdatePage, CountryInterface $country) { $country->getId()->willReturn(10); $countryUpdatePage->open(['id' => 10])->shouldBeCalled(); $this->iWantToEditThisCountry($country); }
/** * @When /^I want to create a new province in (country "([^"]*)")$/ */ public function iWantToCreateANewProvinceInCountry(CountryInterface $country) { $this->updatePage->open(['id' => $country->getId()]); $this->updatePage->clickAddProvinceButton(); }
/** * @Given /^I want to edit (this country)$/ */ public function iWantToEditThisCountry(CountryInterface $country) { $this->countryUpdatePage->open(['id' => $country->getId()]); }