aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/cache/updaterlegacy.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-07 15:23:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:52:07 +0100
commitbb540722cd4e197bd608d9a87e4b10cf66dec5a9 (patch)
treef243bae56944c4b88b2545941a6c6de1e7321f04 /tests/lib/files/cache/updaterlegacy.php
parent284ba5b688d7f0a9d2e1f7b9a68a7e8362be5e67 (diff)
downloadnextcloud-server-bb540722cd4e197bd608d9a87e4b10cf66dec5a9.tar.gz
nextcloud-server-bb540722cd4e197bd608d9a87e4b10cf66dec5a9.zip
Use base class to reset the file mapper
Diffstat (limited to 'tests/lib/files/cache/updaterlegacy.php')
-rw-r--r--tests/lib/files/cache/updaterlegacy.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/files/cache/updaterlegacy.php b/tests/lib/files/cache/updaterlegacy.php
index d16a062fcca..7c05800cd6b 100644
--- a/tests/lib/files/cache/updaterlegacy.php
+++ b/tests/lib/files/cache/updaterlegacy.php
@@ -11,7 +11,7 @@ namespace Test\Files\Cache;
use \OC\Files\Filesystem as Filesystem;
use OC\Files\Storage\Temporary;
-class UpdaterLegacy extends \PHPUnit_Framework_TestCase {
+class UpdaterLegacy extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage $storage
*/
@@ -34,7 +34,8 @@ class UpdaterLegacy extends \PHPUnit_Framework_TestCase {
private static $user;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
// remember files_encryption state
$this->stateFilesEncryption = \OC_App::isEnabled('files_encryption');
@@ -71,7 +72,7 @@ class UpdaterLegacy extends \PHPUnit_Framework_TestCase {
\OC_Hook::clear('OC_Filesystem');
}
- public function tearDown() {
+ protected function tearDown() {
if ($this->cache) {
$this->cache->clear();
}
@@ -83,6 +84,8 @@ class UpdaterLegacy extends \PHPUnit_Framework_TestCase {
if ($this->stateFilesEncryption) {
\OC_App::enable('files_encryption');
}
+
+ parent::tearDown();
}
public function testWrite() {