/**
  * @test
  */
 public function thatUpdate()
 {
     $defaultAssignee = new User();
     $logo = new Logo('file.dummy');
     $branch = new Branch('DUMM', 'DUMMY_NAME', 'DUMMY_DESC', $defaultAssignee, $logo);
     $newDefaultAssignee = new User();
     $newLogo = new Logo('new_file.dummy');
     $branch->update('New Name', 'New Description', $newDefaultAssignee, $newLogo);
     $this->assertEquals('New Name', $branch->getName());
     $this->assertEquals('New Description', $branch->getDescription());
     $this->assertEquals($newDefaultAssignee, $branch->getDefaultAssignee());
     $this->assertEquals($newLogo, $branch->getLogo());
 }
 public static function fromBranch(Branch $branch)
 {
     $command = new self();
     $command->id = $branch->getId();
     $command->name = $branch->getName();
     $command->description = $branch->getDescription();
     $command->defaultAssignee = $branch->getDefaultAssignee();
     $command->tags = $branch->getTags();
     $command->logoFile = null;
     $command->logo = $branch->getLogo();
     return $command;
 }