summaryrefslogtreecommitdiffstats
path: root/tests/lib/filestorage/local.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/filestorage/local.php')
-rw-r--r--tests/lib/filestorage/local.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lib/filestorage/local.php b/tests/lib/filestorage/local.php
index 0a2d46c5ebc..692f05f9fca 100644
--- a/tests/lib/filestorage/local.php
+++ b/tests/lib/filestorage/local.php
@@ -26,10 +26,7 @@ class Test_Filestorage_Local extends Test_FileStorage {
*/
private $tmpDir;
public function setUp(){
- $this->tmpDir=get_temp_dir().'/filestoragelocal';
- if(!file_exists($this->tmpDir)){
- mkdir($this->tmpDir);
- }
+ $this->tmpDir=OC_Helper::tmpFolder();
$this->instance=new OC_Filestorage_Local(array('datadir'=>$this->tmpDir));
}