From 1e06b61f591d74bfaa554578e2ca647d915fcb8f Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 29 Jun 2023 15:41:40 +0200 Subject: Migrate away from ILogger in encryption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And modernize code a bit Signed-off-by: Côme Chilliet --- apps/encryption/tests/Settings/AdminTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/encryption/tests/Settings') 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(); -- cgit v1.2.3