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