aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/EncryptedSizePropagationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/EncryptedSizePropagationTest.php')
-rw-r--r--apps/files_sharing/tests/EncryptedSizePropagationTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/EncryptedSizePropagationTest.php b/apps/files_sharing/tests/EncryptedSizePropagationTest.php
index 1430e5f17ac..a416cd14715 100644
--- a/apps/files_sharing/tests/EncryptedSizePropagationTest.php
+++ b/apps/files_sharing/tests/EncryptedSizePropagationTest.php
@@ -17,13 +17,22 @@ use Test\Traits\EncryptionTrait;
class EncryptedSizePropagationTest extends SizePropagationTest {
use EncryptionTrait;
+ protected function setUp(): void {
+ parent::setUp();
+ $this->config->setAppValue('encryption', 'useMasterKey', '0');
+ }
+
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->config->setAppValue('encryption', 'useMasterKey', '0');
$this->setupForUser($name, $password);
$this->loginWithEncryption($name);
return new View('/' . $name . '/files');
}
+
+ protected function loginHelper($user, $create = false, $password = false) {
+ $this->setupForUser($user, $password);
+ parent::loginHelper($user, $create, $password);
+ }
}