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/UtilTest.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/UtilTest.php')
-rw-r--r-- | apps/encryption/tests/UtilTest.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/encryption/tests/UtilTest.php b/apps/encryption/tests/UtilTest.php index 9d5d93809bc..3c3a8ba371a 100644 --- a/apps/encryption/tests/UtilTest.php +++ b/apps/encryption/tests/UtilTest.php @@ -33,7 +33,6 @@ use OCA\Encryption\Util; use OCP\Files\Mount\IMountPoint; use OCP\Files\Storage; use OCP\IConfig; -use OCP\ILogger; use OCP\IUser; use OCP\IUserManager; use OCP\IUserSession; @@ -89,8 +88,6 @@ class UtilTest extends TestCase { $cryptMock = $this->getMockBuilder(Crypt::class) ->disableOriginalConstructor() ->getMock(); - /** @var \OCP\ILogger $loggerMock */ - $loggerMock = $this->createMock(ILogger::class); $user = $this->createMock(IUser::class); $user->expects($this->any()) @@ -116,7 +113,7 @@ class UtilTest extends TestCase { ->method('setUserValue') ->willReturnCallback([$this, 'setValueTester']); - $this->instance = new Util($this->filesMock, $cryptMock, $loggerMock, $userSessionMock, $this->configMock, $this->userManagerMock); + $this->instance = new Util($this->filesMock, $cryptMock, $userSessionMock, $this->configMock, $this->userManagerMock); } /** |