예제 #1
0
파일: view.php 프로젝트: jhmadhav/core
 protected function tearDown()
 {
     \OC_User::setUserId($this->user);
     foreach ($this->storages as $storage) {
         $cache = $storage->getCache();
         $ids = $cache->getAll();
         $cache->clear();
     }
     if ($this->tempStorage && !\OC_Util::runningOnWindows()) {
         system('rm -rf ' . escapeshellarg($this->tempStorage->getDataDir()));
     }
     $this->logout();
     $this->userObject->delete();
     $this->groupObject->delete();
     parent::tearDown();
 }
예제 #2
0
 protected function tearDown()
 {
     \OC_User::setUserId($this->user);
     foreach ($this->storages as $storage) {
         $cache = $storage->getCache();
         $ids = $cache->getAll();
         $cache->clear();
     }
     if ($this->tempStorage && !\OC_Util::runningOnWindows()) {
         system('rm -rf ' . escapeshellarg($this->tempStorage->getDataDir()));
     }
     $this->logout();
     $this->userObject->delete();
     $this->groupObject->delete();
     $mountProviderCollection = \OC::$server->getMountProviderCollection();
     \Test\TestCase::invokePrivate($mountProviderCollection, 'providers', [[]]);
     parent::tearDown();
 }