Exemplo n.º 1
0
 protected function tearDown()
 {
     if ($this->instance) {
         $this->instance->clear();
     }
     parent::tearDown();
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     \OC_User::setUserId($this->user);
     \OC_Config::setValue('cachedirectory', $this->datadir);
     // Restore the original mount point
     \OC\Files\Filesystem::clearMounts();
     \OC\Files\Filesystem::mount($this->storage, array(), '/');
     parent::tearDown();
 }
Exemplo n.º 3
0
 protected function tearDown()
 {
     $this->instance->remove('hack', 'hack');
     \OC_User::setUserId($this->user);
     \OC::$server->getConfig()->setSystemValue('cachedirectory', $this->datadir);
     // Restore the original mount point
     \OC\Files\Filesystem::clearMounts();
     \OC\Files\Filesystem::mount($this->storage, array(), '/');
     parent::tearDown();
 }