Merge pull request #1442 from owncloud/reuse-oc_helper-tmpfolder-master
reuse \OC_Helper::tmpFolder()
This commit is contained in:
commit
951afcf327
1 changed files with 1 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue