aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-22 22:09:09 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-22 22:35:02 +0100
commitefe644137d1d2d8ad1e11fbf8cd3109a679d6fc1 (patch)
treef5dda5f2bedc112d5f1fdf1ad3b27425ff120ee2 /tests
parent9a0428835f54550d27217f9a9b60d105c436c8b6 (diff)
downloadnextcloud-server-efe644137d1d2d8ad1e11fbf8cd3109a679d6fc1.tar.gz
nextcloud-server-efe644137d1d2d8ad1e11fbf8cd3109a679d6fc1.zip
[encryption] Remove dependency fetching inside the constructor and move them to method call parameters
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Traits/EncryptionTrait.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Traits/EncryptionTrait.php b/tests/lib/Traits/EncryptionTrait.php
index 5ac63c54a5a..38ba18fdfbb 100644
--- a/tests/lib/Traits/EncryptionTrait.php
+++ b/tests/lib/Traits/EncryptionTrait.php
@@ -14,6 +14,7 @@ use OC\Memcache\ArrayCache;
use OCA\Encryption\AppInfo\Application;
use OCA\Encryption\KeyManager;
use OCA\Encryption\Users\Setup;
+use OCP\Encryption\IManager;
/**
* Enables encryption
@@ -64,7 +65,8 @@ trait EncryptionTrait {
/** @var Setup $userSetup */
$userSetup = $container->query(Setup::class);
$userSetup->setupUser($name, $password);
- $this->encryptionApp->setUp();
+ $encryptionManager = $container->query(IManager::class);
+ $this->encryptionApp->setUp($encryptionManager);
$keyManager->init($name, $password);
}