diff options
Diffstat (limited to 'tests/lib/testcase.php')
-rw-r--r-- | tests/lib/testcase.php | 10 |
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(); + } } |