/** * @When /^I try to edit the address of "([^"]+)"$/ */ public function iTryToEditTheAddressOf($fullName) { $address = $this->getAddressOf($fullName); $this->sharedStorage->set('full_name', sprintf('%s %s', $address->getFirstName(), $address->getLastName())); $this->addressBookUpdatePage->tryToOpen(['id' => $address->getId()]); }
/** * @When /^I try to edit the address of "([^"]+)"$/ */ public function iTryToEdit($fullName) { $this->sharedStorage->set('full_name', $fullName); $address = $this->getAddressOf($fullName); $this->addressBookUpdatePage->tryToOpen(['id' => $address->getId()]); }