/**
  * @expectedException \Exception
  */
 public function testGetStatusException()
 {
     $uploadBrowseProxy = new UploadBrowseProxy($this->groupId, UserDao::USER, $this->testDb->getDbManager(), false);
     $uploadBrowseProxy->getStatus(-1);
 }
 private function getPermNamesWithReuse($uploadId)
 {
     $permNamesWithReuse = $GLOBALS['PERM_NAMES'];
     try {
         $uploadBrowseProxy = new UploadBrowseProxy(Auth::getGroupId(), Auth::PERM_READ, $this->dbManager);
         $uploadStatus = $uploadBrowseProxy->getStatus($uploadId);
     } catch (\Exception $e) {
         return $permNamesWithReuse;
     }
     if ($uploadStatus == UploadStatus::IN_PROGRESS || $uploadStatus == UploadStatus::CLOSED) {
         foreach ($GLOBALS['PERM_NAMES'] as $perm => $name) {
             $permNamesWithReuse[$perm | self::MOD_REUSE] = $name . _(' with reuse');
         }
     }
     return $permNamesWithReuse;
 }