public function testGetSetProteinChoice()
 {
     $expected = uniqid();
     $this->assertEmpty($this->instance->getProteinChoice());
     $this->assertInstanceOf(Eating::class, $this->instance->setProteinChoice($expected));
     $this->assertEquals($expected, $this->instance->getProteinChoice());
 }
 /**
  * @param Eating       $eating
  * @param ParamFetcher $paramFetcher
  * @return Eating
  * @throws \Exception
  */
 public function updateEating(Eating $eating, ParamFetcher $paramFetcher)
 {
     $entityManager = $this->getEntityManager();
     $eating->setProteinChoice($paramFetcher->get('eating_protein'))->setDrinksChoice($paramFetcher->get('eating_drinks'))->setPotatoesChoice($paramFetcher->get('eating_potatoes'))->setBreakfastChoice($paramFetcher->get('eating_breakfast'))->setCheeseChoice($paramFetcher->get('eating_cheese'))->setFruitAndVegChoice($paramFetcher->get('eating_fruit_veg'))->setDailySnackChoice($paramFetcher->get('eating_snacks'))->setCompletedDate(new \DateTime());
     $entityManager->persist($eating);
     $entityManager->flush();
     return $this->getQuestionnaireFromEating($eating);
 }