Exemplo n.º 1
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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');
     }
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 7
0
 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 9
0
 public function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
 }
Exemplo n.º 10
0
 /**
  * remove all entries for files that are stored on the storage from the cache
  */
 public function clear()
 {
     $this->cache->clear();
 }