diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-05-31 15:03:37 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-07-06 11:47:11 +0200 |
commit | f186a5cfb1e118dbcf8ee5d072f1e9793017abe1 (patch) | |
tree | 53692e1bef32fda58c2989df5390a72575b0380e /tests/lib/Traits | |
parent | 1a55ace97c3671ec0bed91301aed4ca29456a43f (diff) | |
download | nextcloud-server-f186a5cfb1e118dbcf8ee5d072f1e9793017abe1.tar.gz nextcloud-server-f186a5cfb1e118dbcf8ee5d072f1e9793017abe1.zip |
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.php | 2 |
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'); } } } |