diff options
Diffstat (limited to 'tests/lib/tempmanager.php')
-rw-r--r-- | tests/lib/tempmanager.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/tempmanager.php b/tests/lib/tempmanager.php index 85b94094393..05311e820a7 100644 --- a/tests/lib/tempmanager.php +++ b/tests/lib/tempmanager.php @@ -21,18 +21,21 @@ class NullLogger extends Log { } } -class TempManager extends \PHPUnit_Framework_TestCase { +class TempManager extends \Test\TestCase { protected $baseDir; - public function setUp() { + protected function setUp() { + parent::setUp(); + $this->baseDir = get_temp_dir() . '/oc_tmp_test'; if (!is_dir($this->baseDir)) { mkdir($this->baseDir); } } - public function tearDown() { + protected function tearDown() { \OC_Helper::rmdirr($this->baseDir); + parent::tearDown(); } /** |