コード例 #1
0
 protected function tearDown()
 {
     $this->view->unlink($this->folder);
     $this->view->unlink($this->filename);
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     parent::tearDown();
 }
コード例 #2
0
ファイル: sharedmount.php プロジェクト: kenwi/core
 protected function tearDown()
 {
     if ($this->view) {
         $this->view->unlink($this->folder);
         $this->view->unlink($this->filename);
     }
     parent::tearDown();
 }
コード例 #3
0
ファイル: watcher.php プロジェクト: Romua1d/core
 function tearDown()
 {
     $this->sharedCache->clear();
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     $fileinfo = $this->view->getFileInfo('container/shareddir');
     \OCP\Share::unshare('folder', $fileinfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
     $this->view->deleteAll('container');
     $this->ownerCache->clear();
     parent::tearDown();
 }
コード例 #4
0
ファイル: share.php プロジェクト: Romua1d/core
 function tearDown()
 {
     $this->view->unlink($this->filename);
     $this->view->deleteAll($this->folder);
     self::$tempStorage = null;
     // clear database table
     $query = \OCP\DB::prepare('DELETE FROM `*PREFIX*share`');
     $query->execute();
     parent::tearDown();
 }
コード例 #5
0
ファイル: share.php プロジェクト: evanjt/core
 protected function tearDown()
 {
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     $this->view->unlink($this->filename);
     $this->view->deleteAll($this->folder);
     self::$tempStorage = null;
     // clear database table
     $query = \OCP\DB::prepare('DELETE FROM `*PREFIX*share`');
     $query->execute();
     parent::tearDown();
 }
コード例 #6
0
ファイル: watcher.php プロジェクト: stweil/owncloud-core
 protected function tearDown()
 {
     if ($this->sharedCache) {
         $this->sharedCache->clear();
     }
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     if ($this->view) {
         $this->shareManager->deleteShare($this->_share);
         $this->view->deleteAll('container');
         $this->ownerCache->clear();
     }
     parent::tearDown();
 }
コード例 #7
0
ファイル: sharedstorage.php プロジェクト: Romua1d/core
 function tearDown()
 {
     $this->view->unlink($this->folder);
     $this->view->unlink($this->filename);
     parent::tearDown();
 }
コード例 #8
0
ファイル: proxy.php プロジェクト: samj1912/repo
 protected function tearDown()
 {
     $this->view->deleteAll($this->folder);
     self::$tempStorage = null;
     parent::tearDown();
 }
コード例 #9
0
ファイル: updater.php プロジェクト: riso/owncloud-core
 protected function tearDown()
 {
     $this->view->unlink($this->filename);
     $this->view->deleteAll($this->folder);
     parent::tearDown();
 }
コード例 #10
0
ファイル: permissions.php プロジェクト: stweil/owncloud-core
 protected function tearDown()
 {
     if ($this->sharedCache) {
         $this->sharedCache->clear();
     }
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     $shares = $this->shareManager->getSharesBy(self::TEST_FILES_SHARING_API_USER1, \OCP\Share::SHARE_TYPE_USER);
     foreach ($shares as $share) {
         $this->shareManager->deleteShare($share);
     }
     $this->view->deleteAll('container');
     $this->ownerCache->clear();
     parent::tearDown();
 }