diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2014-09-22 13:38:46 -0400 |
---|---|---|
committer | Clark Tomlinson <fallen013@gmail.com> | 2014-09-22 13:38:46 -0400 |
commit | 7b6aa3cd3dd57b0415f8a81ace27bed078bab728 (patch) | |
tree | 356621f7661df9a76e5e1d170cfcfbac0669af14 /tests/lib/cache | |
parent | db72270acc2ef8dcf1b04ec5e7ed8ce3fb38d81c (diff) | |
download | nextcloud-server-7b6aa3cd3dd57b0415f8a81ace27bed078bab728.tar.gz nextcloud-server-7b6aa3cd3dd57b0415f8a81ace27bed078bab728.zip |
fixing cache routes
Diffstat (limited to 'tests/lib/cache')
-rw-r--r-- | tests/lib/cache/file.php | 6 | ||||
-rw-r--r-- | tests/lib/cache/usercache.php | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/lib/cache/file.php b/tests/lib/cache/file.php index 3767c83fcb1..0e19c105cd1 100644 --- a/tests/lib/cache/file.php +++ b/tests/lib/cache/file.php @@ -46,8 +46,8 @@ class FileCache extends \Test_Cache { $storage = new \OC\Files\Storage\Temporary(array()); \OC\Files\Filesystem::mount($storage,array(),'/'); $datadir = str_replace('local::', '', $storage->getId()); - $this->datadir = \OC_Config::getValue('datadirectory', \OC::$SERVERROOT.'/data'); - \OC_Config::setValue('datadirectory', $datadir); + $this->datadir = \OC_Config::getValue('cachedirectory', \OC::$SERVERROOT.'/data/cache'); + \OC_Config::setValue('cachedirectory', $datadir); \OC_User::clearBackends(); \OC_User::useBackend(new \OC_User_Dummy()); @@ -67,6 +67,6 @@ class FileCache extends \Test_Cache { public function tearDown() { \OC_User::setUserId($this->user); - \OC_Config::setValue('datadirectory', $this->datadir); + \OC_Config::setValue('cachedirectory', $this->datadir); } } diff --git a/tests/lib/cache/usercache.php b/tests/lib/cache/usercache.php index 21b7f848ab6..a1b6af1c55d 100644 --- a/tests/lib/cache/usercache.php +++ b/tests/lib/cache/usercache.php @@ -42,8 +42,8 @@ class UserCache extends \Test_Cache { $storage = new \OC\Files\Storage\Temporary(array()); \OC\Files\Filesystem::mount($storage,array(),'/'); $datadir = str_replace('local::', '', $storage->getId()); - $this->datadir = \OC_Config::getValue('datadirectory', \OC::$SERVERROOT.'/data'); - \OC_Config::setValue('datadirectory', $datadir); + $this->datadir = \OC_Config::getValue('cachedirectory', \OC::$SERVERROOT.'/data/cache'); + \OC_Config::setValue('cachedirectory', $datadir); \OC_User::clearBackends(); \OC_User::useBackend(new \OC_User_Dummy()); @@ -63,6 +63,5 @@ class UserCache extends \Test_Cache { public function tearDown() { \OC_User::setUserId($this->user); - \OC_Config::setValue('datadirectory', $this->datadir); } } |