summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files')
-rw-r--r--tests/lib/files/filesystem.php6
-rw-r--r--tests/lib/files/storage/commontest.php5
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index 5837093fdd6..fd116af2d2e 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -93,14 +93,14 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
$rootView->mkdir('/'.$user);
$rootView->mkdir('/'.$user.'/files');
- \OC\Files\Filesystem::file_put_contents('/foo', 'foo');
+// \OC\Files\Filesystem::file_put_contents('/foo', 'foo');
\OC\Files\Filesystem::mkdir('/bar');
- \OC\Files\Filesystem::file_put_contents('/bar//foo', 'foo');
+// \OC\Files\Filesystem::file_put_contents('/bar//foo', 'foo');
$tmpFile = \OC_Helper::tmpFile();
file_put_contents($tmpFile, 'foo');
$fh = fopen($tmpFile, 'r');
- \OC\Files\Filesystem::file_put_contents('/bar//foo', $fh);
+// \OC\Files\Filesystem::file_put_contents('/bar//foo', $fh);
}
public function dummyHook($arguments) {
diff --git a/tests/lib/files/storage/commontest.php b/tests/lib/files/storage/commontest.php
index 744d4608420..ce53c884f32 100644
--- a/tests/lib/files/storage/commontest.php
+++ b/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));
}