/**
  * @test
  */
 public function setEmailForStringSetsEmail()
 {
     $this->fixture->setEmail('Conceived at T3CON10');
     $this->assertSame('Conceived at T3CON10', $this->fixture->getEmail());
 }
 /**
  * action update
  *
  * @param \AFM\Registeraddress\Domain\Model\Address $address
  * @return void
  */
 public function updateAction(\AFM\Registeraddress\Domain\Model\Address $address)
 {
     $hash = $address->getRegisteraddresshash();
     // always save old e-mail address
     $addressOld = $this->addressRepository->findOneByRegisteraddresshashIgnoreHidden($hash);
     $address->setEmail($addressOld->getEmail());
     $this->addressRepository->update($address);
     $this->flashMessageContainer->flush();
     $this->flashMessageContainer->add(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('flashMessage.update', 'registeraddress'));
     $this->redirect('edit', 'Address', 'registeraddress', array('hash' => $address->getRegisteraddresshash()));
 }