예제 #1
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
예제 #2
0
 protected function tearDown()
 {
     $query = \OCP\DB::prepare('DELETE FROM `*PREFIX*share_external`');
     $query->execute();
     $this->restoreHttpHelper();
     parent::tearDown();
 }
예제 #3
0
 protected function tearDown()
 {
     \OC_Hook::clear('OC_Filesystem', 'post_write');
     \OC_Hook::clear('OC_Filesystem', 'post_delete');
     \OC_Hook::clear('OC_Filesystem', 'post_rename');
     parent::tearDown();
 }
예제 #4
0
 protected function tearDown()
 {
     if ($this->view) {
         $this->view->deleteAll($this->folder);
     }
     self::$tempStorage = null;
     parent::tearDown();
 }
예제 #5
0
 protected function tearDown()
 {
     \OC_Hook::clear('OC_Filesystem', 'post_write');
     \OC_Hook::clear('OC_Filesystem', 'post_delete');
     \OC_Hook::clear('OC_Filesystem', 'post_rename');
     \OC_Hook::clear('OCP\\Share', 'post_update_permissions');
     parent::tearDown();
 }
예제 #6
0
파일: backend.php 프로젝트: kenwi/core
 protected function tearDown()
 {
     if ($this->view) {
         $this->view->unlink($this->filename);
         $this->view->deleteAll($this->folder);
     }
     parent::tearDown();
 }
예제 #7
0
파일: api.php 프로젝트: evanjt/core
 protected function tearDown()
 {
     if ($this->view instanceof \OC\Files\View) {
         $this->view->unlink($this->filename);
         $this->view->deleteAll($this->folder);
     }
     self::$tempStorage = null;
     parent::tearDown();
 }
예제 #8
0
파일: cache.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);
     $fileinfo = $this->view->getFileInfo('container/shared single file.txt');
     \OCP\Share::unshare('file', $fileinfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
     $this->view->deleteAll('container');
     $this->ownerCache->clear();
     parent::tearDown();
 }
예제 #9
0
 public function tearDown()
 {
     \OC::$server->getUserManager()->removeBackend($this->userBackend);
     parent::tearDown();
 }
예제 #10
0
 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();
 }
예제 #11
0
 public function tearDown()
 {
     parent::tearDown();
     $this->cleanDB();
 }
 protected function tearDown()
 {
     $this->groupPropagationManager->tearDown();
     $this->recipientGroup->removeUser($this->recipientUser);
     parent::tearDown();
 }