Merge pull request #1442 from owncloud/reuse-oc_helper-tmpfolder-master

reuse \OC_Helper::tmpFolder()
This commit is contained in:
Thomas Tanghus 2013-02-04 11:57:57 -08:00
commit 951afcf327

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