diff options
Diffstat (limited to 'tests/lib/Cache/FileCacheTest.php')
-rw-r--r-- | tests/lib/Cache/FileCacheTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php index 26306458d83..450bdf607b3 100644 --- a/tests/lib/Cache/FileCacheTest.php +++ b/tests/lib/Cache/FileCacheTest.php @@ -95,6 +95,15 @@ class FileCacheTest extends TestCache { \OC_User::setUserId($this->user); \OC::$server->getConfig()->setSystemValue('cachedirectory', $this->datadir); + if ($this->instance) { + $this->instance->clear(); + $this->instance = null; + } + + //tear down the users dir aswell + $user = \OC::$server->getUserManager()->get('test'); + $user->delete(); + // Restore the original mount point \OC\Files\Filesystem::clearMounts(); \OC\Files\Filesystem::mount($this->storage, array(), '/'); |