aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-11 16:45:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-18 11:55:15 +0200
commit485ea316a196e86e547eab622e4ed522c4b52588 (patch)
tree2daa963f8d1d79ae18b2acf918f84de949aa1c6b /tests
parentdc870cb450cabadf79fb805715ed772bab8baafd (diff)
downloadnextcloud-server-485ea316a196e86e547eab622e4ed522c4b52588.tar.gz
nextcloud-server-485ea316a196e86e547eab622e4ed522c4b52588.zip
reuse the same datadir
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/connector/sabre/requesttest/requesttest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/connector/sabre/requesttest/requesttest.php b/tests/lib/connector/sabre/requesttest/requesttest.php
index 7afe2645037..4d4c8173caa 100644
--- a/tests/lib/connector/sabre/requesttest/requesttest.php
+++ b/tests/lib/connector/sabre/requesttest/requesttest.php
@@ -52,7 +52,8 @@ abstract class RequestTest extends TestCase {
protected function setupUser($name, $password) {
$this->createUser($name, $password);
- $this->registerMount($name, '\OC\Files\Storage\Temporary', '/' . $name);
+ $tmpFolder = \OC::$server->getTempManager()->getTemporaryFolder();
+ $this->registerMount($name, '\OC\Files\Storage\Local', '/' . $name, ['datadir' => $tmpFolder]);
$this->loginAsUser($name);
return new View('/' . $name . '/files');
}