/**
  * Edit contact
  *
  * @param Contact $contact
  * @param Reservation $reservation
  * @throws InvalidSourceException
  * @ignorevalidation $contact
  * @ignorevalidation $reservation
  */
 public function editAction(Contact $contact, Reservation $reservation)
 {
     if ($reservation->getContact() !== $contact) {
         throw new InvalidSourceException('Can not edit contact uid ' . $contact->getUid() . '. Contact not found in Reservation uid: ' . $reservation->getUid() . '.', 1460039887);
     }
     $this->view->assign('contact', $contact);
 }
 /**
  * @test
  */
 public function updateActionRedirectsToDefaultController()
 {
     $this->mockContactRepository();
     $contact = new Contact();
     /** @var Reservation $mockReservation */
     $mockReservation = $this->getMock(Reservation::class);
     $contact->setReservation($mockReservation);
     $this->subject->expects($this->once())->method('redirect')->with('edit', ContactController::PARENT_CONTROLLER_NAME, null, ['reservation' => $mockReservation]);
     $this->subject->updateAction($contact);
 }