public function setUp()
 {
     parent::setUp();
     $this->instance = new \OC\Cache\CappedMemoryCache();
 }
Ejemplo n.º 2
0
 protected function tearDown()
 {
     if ($this->instance) {
         $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();
 }