summaryrefslogtreecommitdiffstats
path: root/tests/lib/testcase.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/testcase.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/testcase.php')
-rw-r--r--tests/lib/testcase.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index a4b4b0103f0..315cd6858ed 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -30,4 +30,14 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
);
}
+
+ public static function tearDownAfterClass() {
+ if (\OC_Util::runningOnWindows()) {
+ $rootDirectory = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data-autotest');
+ $mapper = new \OC\Files\Mapper($rootDirectory);
+ $mapper->removePath($rootDirectory, true, true);
+ }
+
+ parent::tearDownAfterClass();
+ }
}