aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Settings
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-06-29 15:41:40 +0200
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-08-08 09:14:16 +0200
commit1e06b61f591d74bfaa554578e2ca647d915fcb8f (patch)
tree8c73bf57a5552dd05a0b8fabcbc3b87eb38d81c0 /apps/encryption/tests/Settings
parentd7e2813eca2da348fde85472e7b9fcb9b4843a93 (diff)
downloadnextcloud-server-1e06b61f591d74bfaa554578e2ca647d915fcb8f.tar.gz
nextcloud-server-1e06b61f591d74bfaa554578e2ca647d915fcb8f.zip
Migrate away from ILogger in encryption
And modernize code a bit Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/encryption/tests/Settings')
-rw-r--r--apps/encryption/tests/Settings/AdminTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/encryption/tests/Settings/AdminTest.php b/apps/encryption/tests/Settings/AdminTest.php
index e4b2933dd3b..055b65e2e28 100644
--- a/apps/encryption/tests/Settings/AdminTest.php
+++ b/apps/encryption/tests/Settings/AdminTest.php
@@ -29,7 +29,7 @@ use OCA\Encryption\Settings\Admin;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IL10N;
-use OCP\ILogger;
+use Psr\Log\LoggerInterface;
use OCP\ISession;
use OCP\IUserManager;
use OCP\IUserSession;
@@ -40,7 +40,7 @@ class AdminTest extends TestCase {
private $admin;
/** @var IL10N */
private $l;
- /** @var ILogger */
+ /** @var LoggerInterface */
private $logger;
/** @var IUserSession */
private $userSession;
@@ -55,7 +55,7 @@ class AdminTest extends TestCase {
parent::setUp();
$this->l = $this->getMockBuilder(IL10N::class)->getMock();
- $this->logger = $this->getMockBuilder(ILogger::class)->getMock();
+ $this->logger = $this->getMockBuilder(LoggerInterface::class)->getMock();
$this->userSession = $this->getMockBuilder(IUserSession::class)->getMock();
$this->config = $this->getMockBuilder(IConfig::class)->getMock();
$this->userManager = $this->getMockBuilder(IUserManager::class)->getMock();