Example #1
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
Example #2
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
Example #3
0
 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();
 }
Example #4
0
 public function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     Filesystem::tearDown();
     // reset app files_encryption
     if ($this->stateFilesEncryption) {
         \OC_App::enable('files_encryption');
     }
 }
Example #5
0
 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();
 }
Example #6
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = false;
     $user = \OC::$server->getUserManager()->get(self::$user);
     if ($user !== null) {
         $result = $user->delete();
     }
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     Filesystem::tearDown();
     Filesystem::mount($this->originalStorage, array(), '/');
     // reset app files_encryption
     if ($this->stateFilesEncryption) {
         \OC_App::enable('files_encryption');
     }
     parent::tearDown();
 }
Example #8
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();
 }
Example #9
0
 public function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
 }
 /**
  * remove all entries for files that are stored on the storage from the cache
  */
 public function clear()
 {
     $this->cache->clear();
 }