reuse \OC_Helper::tmpFolder()

remotes/origin/stable5
Thomas Mueller 13 years ago
parent f7258cc5e8
commit 997259df4b
  1. 5
      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));
}

Loading…
Cancel
Save