private function updateDefaultTargetData()
 {
     $defaultTarget = $this->targets->isEmpty() ? null : $this->targets->getDefaultTarget()->getName();
     foreach ($this->targetsData as $targetName => &$data) {
         if ($targetName === $defaultTarget) {
             $data->default = true;
         } else {
             unset($data->default);
         }
     }
 }
 /**
  * @expectedException \Puli\AssetPlugin\Api\Target\NoSuchTargetException
  */
 public function testGetDefaultTargetFailsIfEmpty()
 {
     $this->collection->getDefaultTarget();
 }