aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Crypto/CryptTest.php
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/Crypto/CryptTest.php
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/Crypto/CryptTest.php')
-rw-r--r--apps/encryption/tests/Crypto/CryptTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php
index 0bb2c652d8b..06caa5aba1a 100644
--- a/apps/encryption/tests/Crypto/CryptTest.php
+++ b/apps/encryption/tests/Crypto/CryptTest.php
@@ -29,12 +29,12 @@ namespace OCA\Encryption\Tests\Crypto;
use OCA\Encryption\Crypto\Crypt;
use OCP\IConfig;
use OCP\IL10N;
-use OCP\ILogger;
+use Psr\Log\LoggerInterface;
use OCP\IUserSession;
use Test\TestCase;
class CryptTest extends TestCase {
- /** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
+ /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
/** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
@@ -52,7 +52,7 @@ class CryptTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $this->logger = $this->getMockBuilder(ILogger::class)
+ $this->logger = $this->getMockBuilder(LoggerInterface::class)
->disableOriginalConstructor()
->getMock();
$this->logger->expects($this->any())