reuse the same datadir
This commit is contained in:
parent
dc870cb450
commit
485ea316a1
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue