aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-05-13 13:11:37 +0200
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2025-05-13 23:37:52 +0200
commit43418eea5f627e1dee61f37c43a47fd00bfba376 (patch)
tree445819a468c3a0cbaf5c9748578b15cfd462d65e
parenta86d9179074c2781ce1a68d9d649834728e127d8 (diff)
downloadnextcloud-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.php6
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]);