public function testGetSetDoYouDrink()
 {
     $expected = Drinking::DOES_DRINK;
     $this->assertEmpty($this->instance->getDoYouDrink());
     $this->assertInstanceOf(Drinking::class, $this->instance->setDoYouDrink($expected));
     $this->assertEquals($expected, $this->instance->getDoYouDrink());
 }
 /**
  * @param Drinking     $drinking
  * @param ParamFetcher $paramFetcher
  * @return Drinking
  * @throws \Exception
  */
 public function updateDrinking(Drinking $drinking, ParamFetcher $paramFetcher)
 {
     $entityManager = $this->getEntityManager();
     $drinking->setDoYouDrink($paramFetcher->get('do_you_drink'))->setWeekdayDrinks($this->createDrinks($paramFetcher, $drinking->getWeekdayDrinks(), Drinks::DRINKS_TYPE_WEEKDAY))->setWeekendDrinks($this->createDrinks($paramFetcher, $drinking->getWeekendDrinks(), Drinks::DRINKS_TYPE_WEEKEND))->setOccasionalDrinks($this->createDrinks($paramFetcher, $drinking->getOccasionalDrinks(), Drinks::DRINKS_TYPE_OCCASIONAL))->setWhichDaysDoYouDrink($paramFetcher->get('which_days_do_you_drink'))->setCompletedDate(new \DateTime());
     $entityManager->persist($drinking);
     $entityManager->flush();
     return $this->getQuestionnaireFromDrinking($drinking);
 }