/**
  * testSaveDownloadLinkDirectory
  *
  * @return array Filemanager_Model_DownloadLink
  */
 public function testSaveDownloadLinkDirectory()
 {
     $downloadLinkData = $this->_getDownloadLinkData();
     $result = $this->_json->saveDownloadLink($downloadLinkData);
     $this->assertTrue(!empty($result['url']));
     $this->assertEquals(Tinebase_Core::getHostname() . '/download/show/' . $result['id'], $result['url']);
     return $result;
 }
 /**
  * testSaveDownloadLinkDirectory
  *
  * @return array Filemanager_Model_DownloadLink
  */
 public function testSaveDownloadLinkDirectory()
 {
     $downloadLinkData = $this->_getDownloadLinkData();
     $result = $this->_json->saveDownloadLink($downloadLinkData);
     $this->assertTrue(!empty($result['url']));
     $this->assertEquals($this->_getDownloadUrl($result['id']), $result['url']);
     return $result;
 }