]> source.dussan.org Git - nextcloud-server.git/commitdiff
reuse \OC_Helper::tmpFolder()
authorThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 12:10:25 +0000 (13:10 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 13:11:51 +0000 (14:11 +0100)
tests/lib/files/storage/commontest.php

index 744d4608420264674f8e0bf6b6413a81b7121c48..ce53c884f328b0716f39b73d7d206850b26197df 100644 (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));
        }