aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Hooks/UserHooksTest.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/Hooks/UserHooksTest.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/Hooks/UserHooksTest.php')
-rw-r--r--apps/encryption/tests/Hooks/UserHooksTest.php5
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();