aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Security/CryptoTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Security/CryptoTest.php')
-rw-r--r--tests/lib/Security/CryptoTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Security/CryptoTest.php b/tests/lib/Security/CryptoTest.php
index 64042d0c5a9..b650e3ffc09 100644
--- a/tests/lib/Security/CryptoTest.php
+++ b/tests/lib/Security/CryptoTest.php
@@ -11,6 +11,8 @@ declare(strict_types=1);
namespace Test\Security;
use OC\Security\Crypto;
+use OCP\IConfig;
+use OCP\Server;
class CryptoTest extends \Test\TestCase {
public static function defaultEncryptionProvider(): array {
@@ -26,7 +28,7 @@ class CryptoTest extends \Test\TestCase {
protected function setUp(): void {
parent::setUp();
- $this->crypto = new Crypto(\OC::$server->getConfig());
+ $this->crypto = new Crypto(Server::get(IConfig::class));
}
/**