aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage/mappedlocal.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/storage/mappedlocal.php')
-rw-r--r--tests/lib/files/storage/mappedlocal.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/files/storage/mappedlocal.php b/tests/lib/files/storage/mappedlocal.php
index b483f3a1954..1e87b53d00a 100644
--- a/tests/lib/files/storage/mappedlocal.php
+++ b/tests/lib/files/storage/mappedlocal.php
@@ -27,14 +27,17 @@ class MappedLocal extends Storage {
* @var string tmpDir
*/
private $tmpDir;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->tmpDir=\OC_Helper::tmpFolder();
$this->instance=new \OC\Files\Storage\MappedLocal(array('datadir'=>$this->tmpDir));
}
- public function tearDown() {
+ protected function tearDown() {
\OC_Helper::rmdirr($this->tmpDir);
unset($this->instance);
+ parent::tearDown();
}
}