public function setUp() { parent::setUp(); $this->instance = new \OC\Cache\CappedMemoryCache(); }
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(); }