diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-10 22:59:50 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-19 14:53:51 +0100 |
commit | cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (patch) | |
tree | 2a3ec09e86f13885483286ba5f5213201eb4ee67 /tests/lib/cache/usercache.php | |
parent | 76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (diff) | |
download | nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.tar.gz nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.zip |
Make root tests extend the \Test\TestCase
Diffstat (limited to 'tests/lib/cache/usercache.php')
-rw-r--r-- | tests/lib/cache/usercache.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/cache/usercache.php b/tests/lib/cache/usercache.php index 8a23a805ebe..3822a714d5a 100644 --- a/tests/lib/cache/usercache.php +++ b/tests/lib/cache/usercache.php @@ -30,7 +30,9 @@ class UserCache extends \Test_Cache { /** @var \OC\Files\Storage\Storage */ private $storage; - public function setUp() { + protected function setUp() { + parent::setUp(); + //clear all proxies and hooks so we can do clean testing \OC_FileProxy::clearProxies(); \OC_Hook::clear('OC_Filesystem'); @@ -66,7 +68,7 @@ class UserCache extends \Test_Cache { $this->instance=new \OC\Cache\UserCache(); } - public function tearDown() { + protected function tearDown() { \OC_User::setUserId($this->user); \OC_Config::setValue('cachedirectory', $this->datadir); |