Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-05-31 16:03:37 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2017-07-06 12:47:11 +0300
commitf186a5cfb1e118dbcf8ee5d072f1e9793017abe1 (patch)
tree53692e1bef32fda58c2989df5390a72575b0380e /tests/lib/Traits
parent1a55ace97c3671ec0bed91301aed4ca29456a43f (diff)
fix and extend dav test to also test the master-key setup
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests/lib/Traits')
-rw-r--r--tests/lib/Traits/EncryptionTrait.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Traits/EncryptionTrait.php b/tests/lib/Traits/EncryptionTrait.php
index 5e2ca4e561f..8a06d37fa7f 100644
--- a/tests/lib/Traits/EncryptionTrait.php
+++ b/tests/lib/Traits/EncryptionTrait.php
@@ -64,6 +64,7 @@ trait EncryptionTrait {
/** @var Setup $userSetup */
$userSetup = $container->query('UserSetup');
$userSetup->setupUser($name, $password);
+ $this->encryptionApp->setUp();
$keyManager->init($name, $password);
}
@@ -99,6 +100,7 @@ trait EncryptionTrait {
if ($this->config) {
$this->config->setAppValue('core', 'encryption_enabled', $this->encryptionWasEnabled);
$this->config->setAppValue('core', 'default_encryption_module', $this->originalEncryptionModule);
+ $this->config->deleteAppValue('encryption', 'useMasterKey');
}
}
}