reuse the same datadir

This commit is contained in:
Robin Appelman 2015-09-11 16:45:32 +02:00 committed by Thomas Müller
parent dc870cb450
commit 485ea316a1
1 changed files with 2 additions and 1 deletions

View File

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