reuse \OC_Helper::tmpFolder()
This commit is contained in:
parent
f7258cc5e8
commit
997259df4b
|
@ -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 New Issue