diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-02-04 11:57:57 -0800 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-02-04 11:57:57 -0800 |
commit | 951afcf3277bfe63ade14f6eff8577743af025d8 (patch) | |
tree | a52f4285909080c7c7c60ffa49c4720e2a84c2d3 | |
parent | 3b8c071df4654c1b3f999af94163f14c0cd64733 (diff) | |
parent | 997259df4b3000aef343fd19f29935d1fde8b23e (diff) | |
download | nextcloud-server-951afcf3277bfe63ade14f6eff8577743af025d8.tar.gz nextcloud-server-951afcf3277bfe63ade14f6eff8577743af025d8.zip |
Merge pull request #1442 from owncloud/reuse-oc_helper-tmpfolder-master
reuse \OC_Helper::tmpFolder()
-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)); } |