mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(tests): Register mount in loginHelper as well
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
249e33fcd6
commit
612a1560b1
1 changed files with 7 additions and 2 deletions
|
|
@ -24,14 +24,19 @@ class EncryptedSizePropagationTest extends SizePropagationTest {
|
|||
|
||||
protected function setupUser($name, $password = '') {
|
||||
$this->createUser($name, $password);
|
||||
$tmpFolder = Server::get(ITempManager::class)->getTemporaryFolder();
|
||||
$this->registerMount($name, '\OC\Files\Storage\Local', '/' . $name, ['datadir' => $tmpFolder]);
|
||||
$this->registerMountForUser($name);
|
||||
$this->setupForUser($name, $password);
|
||||
$this->loginWithEncryption($name);
|
||||
return new View('/' . $name . '/files');
|
||||
}
|
||||
|
||||
private function registerMountForUser($user): void {
|
||||
$tmpFolder = Server::get(ITempManager::class)->getTemporaryFolder();
|
||||
$this->registerMount($user, '\OC\Files\Storage\Local', '/' . $user, ['datadir' => $tmpFolder]);
|
||||
}
|
||||
|
||||
protected function loginHelper($user, $create = false, $password = false) {
|
||||
$this->registerMountForUser($user);
|
||||
$this->setupForUser($user, $password);
|
||||
parent::loginHelper($user, $create, $password);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue