diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 13:10:25 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 14:11:51 +0100 |
commit | 997259df4b3000aef343fd19f29935d1fde8b23e (patch) | |
tree | 11d48cc28c2f68eaa402da8d01bca4c82e2b58fc /tests | |
parent | f7258cc5e8f10916e78d2b10d18f1cd2fb9ddbca (diff) | |
download | nextcloud-server-997259df4b3000aef343fd19f29935d1fde8b23e.tar.gz nextcloud-server-997259df4b3000aef343fd19f29935d1fde8b23e.zip |
reuse \OC_Helper::tmpFolder()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/commontest.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lib/files/storage/commontest.php b/tests/lib/files/storage/commontest.php index 744d4608420..ce53c884f32 100644 --- a/tests/lib/files/storage/commontest.php +++ b/tests/lib/files/storage/commontest.php @@ -28,10 +28,7 @@ class CommonTest extends Storage { */ private $tmpDir; public function setUp() { - $this->tmpDir=get_temp_dir().'/filestoragecommon'; - if(!file_exists($this->tmpDir)) { - mkdir($this->tmpDir); - } + $this->tmpDir=\OC_Helper::tmpFolder(); $this->instance=new \OC\Files\Storage\CommonTest(array('datadir'=>$this->tmpDir)); } |