reuse \OC_Helper::tmpFolder()

This commit is contained in:
Thomas Mueller 2013-02-04 13:10:25 +01:00
parent f7258cc5e8
commit 997259df4b
1 changed files with 1 additions and 4 deletions

View File

@ -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));
}