diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-05-13 13:11:37 +0200 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2025-05-13 23:37:52 +0200 |
commit | 43418eea5f627e1dee61f37c43a47fd00bfba376 (patch) | |
tree | 445819a468c3a0cbaf5c9748578b15cfd462d65e | |
parent | a86d9179074c2781ce1a68d9d649834728e127d8 (diff) | |
download | nextcloud-server-fix/migrate-encryption-away-from-hooks.tar.gz nextcloud-server-fix/migrate-encryption-away-from-hooks.zip |
fix(tests): Set encryption configuration even earlier so that all users are created with private keyfix/migrate-encryption-away-from-hooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/files_sharing/tests/EncryptedSizePropagationTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/EncryptedSizePropagationTest.php b/apps/files_sharing/tests/EncryptedSizePropagationTest.php index a24df25a755..a416cd14715 100644 --- a/apps/files_sharing/tests/EncryptedSizePropagationTest.php +++ b/apps/files_sharing/tests/EncryptedSizePropagationTest.php @@ -17,8 +17,12 @@ use Test\Traits\EncryptionTrait; class EncryptedSizePropagationTest extends SizePropagationTest { use EncryptionTrait; - protected function setupUser($name, $password = '') { + 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]); |