summaryrefslogtreecommitdiffstats
path: root/tests/lib/tempmanager.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-10 22:59:50 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:53:51 +0100
commitcb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (patch)
tree2a3ec09e86f13885483286ba5f5213201eb4ee67 /tests/lib/tempmanager.php
parent76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (diff)
downloadnextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.tar.gz
nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.zip
Make root tests extend the \Test\TestCase
Diffstat (limited to 'tests/lib/tempmanager.php')
-rw-r--r--tests/lib/tempmanager.php9
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();
}
/**