Move app loading in encryption trait below config value changes
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
d8d53d39a4
commit
3a16762df6
|
@ -87,15 +87,16 @@ trait EncryptionTrait {
|
|||
$this->markTestSkipped('Encryption not ready');
|
||||
}
|
||||
|
||||
\OC_App::loadApp('encryption');
|
||||
|
||||
$this->encryptionApp = new Application([], $isReady);
|
||||
|
||||
$this->config = \OC::$server->getConfig();
|
||||
$this->encryptionWasEnabled = $this->config->getAppValue('core', 'encryption_enabled', 'no');
|
||||
$this->originalEncryptionModule = $this->config->getAppValue('core', 'default_encryption_module');
|
||||
$this->config->setAppValue('core', 'default_encryption_module', \OCA\Encryption\Crypto\Encryption::ID);
|
||||
$this->config->setAppValue('core', 'encryption_enabled', 'yes');
|
||||
|
||||
\OC_App::loadApp('encryption');
|
||||
|
||||
$this->encryptionApp = new Application();
|
||||
|
||||
$this->assertTrue(\OC::$server->getEncryptionManager()->isEnabled());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue