コード例 #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
ファイル: ViewTest.php プロジェクト: rchicoli/owncloud-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();
     $mountProviderCollection = \OC::$server->getMountProviderCollection();
     \Test\TestCase::invokePrivate($mountProviderCollection, 'providers', [[]]);
     parent::tearDown();
 }