/** * testDeleteDirectoryNodes */ public function testDeleteDirectoryNodes() { $dirpaths = $this->testCreateDirectoryNodesInShared(); $result = $this->_json->deleteNodes($dirpaths); // check if node is deleted $this->setExpectedException('Tinebase_Exception_NotFound'); $node = $this->_fsController->stat(Filemanager_Controller_Node::getInstance()->addBasePath($dirpaths[0])); }
/** * testDeleteDownloadLinks */ public function testDeleteDownloadLinks() { $downloadLink = $this->testSaveDownloadLinkFile(); $result = $this->_json->deleteDownloadLinks(array($downloadLink['id'])); try { Filemanager_Controller_DownloadLink::getInstance()->get($downloadLink['id']); $this->fail('link should have been deleted'); } catch (Exception $e) { $this->assertTrue($e instanceof Tinebase_Exception_NotFound); } }