/**
  * Tests that updating a repo saving and retrieving means that we have
  * and updated version of the file.
  */
 public function testRepoUpdatesWorkDayIfNewIsAddedWithSameData()
 {
     $this->workingDayWithTask = $this->getWorkingDayWithTask();
     $this->inMemoryRepo->add($this->workingDayWithTask);
     $workingDayFromRepo = $this->inMemoryRepo->getByDate(Carbon::now());
     $this->assertSame($this->workingDayWithTask, $workingDayFromRepo);
     $workingDayFromRepo->addTask(new Task('Beber un poco de vino'));
     $workingDayFromRepo = $this->inMemoryRepo->getByDate(Carbon::now());
     $this->assertSame($this->workingDayWithTask, $workingDayFromRepo);
 }