diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-06-29 15:41:40 +0200 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-08-08 09:14:16 +0200 |
commit | 1e06b61f591d74bfaa554578e2ca647d915fcb8f (patch) | |
tree | 8c73bf57a5552dd05a0b8fabcbc3b87eb38d81c0 /apps/encryption/tests/Hooks/UserHooksTest.php | |
parent | d7e2813eca2da348fde85472e7b9fcb9b4843a93 (diff) | |
download | nextcloud-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/Hooks/UserHooksTest.php')
-rw-r--r-- | apps/encryption/tests/Hooks/UserHooksTest.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/encryption/tests/Hooks/UserHooksTest.php b/apps/encryption/tests/Hooks/UserHooksTest.php index e06feb1e370..add7e375f04 100644 --- a/apps/encryption/tests/Hooks/UserHooksTest.php +++ b/apps/encryption/tests/Hooks/UserHooksTest.php @@ -34,7 +34,7 @@ use OCA\Encryption\Recovery; use OCA\Encryption\Session; use OCA\Encryption\Users\Setup; use OCA\Encryption\Util; -use OCP\ILogger; +use Psr\Log\LoggerInterface; use OCP\IUser; use OCP\IUserManager; use OCP\IUserSession; @@ -160,7 +160,6 @@ class UserHooksTest extends TestCase { * @dataProvider dataTestPreSetPassphrase */ public function testPreSetPassphrase($canChange) { - /** @var UserHooks | \PHPUnit\Framework\MockObject\MockObject $instance */ $instance = $this->getMockBuilder(UserHooks::class) ->setConstructorArgs( @@ -332,7 +331,7 @@ class UserHooksTest extends TestCase { protected function setUp(): void { parent::setUp(); - $this->loggerMock = $this->createMock(ILogger::class); + $this->loggerMock = $this->createMock(LoggerInterface::class); $this->keyManagerMock = $this->getMockBuilder(KeyManager::class) ->disableOriginalConstructor() ->getMock(); |