]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix more tests 23382/head
authorJoas Schilling <coding@schilljs.com>
Tue, 13 Oct 2020 06:16:17 +0000 (08:16 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 13 Oct 2020 06:16:17 +0000 (08:16 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/User/SessionTest.php

index 8fd94ffc004950df7a3cd1fc76afd156c45f4307..d2aa0ee02595516383c4dbcd81069254934b4a5b 100644 (file)
@@ -31,6 +31,7 @@ use OCP\Security\ICrypto;
 use OCP\Security\ISecureRandom;
 use OCP\User\Events\PostLoginEvent;
 use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 
 /**
@@ -1246,7 +1247,7 @@ class SessionTest extends \Test\TestCase {
                        ->disableOriginalConstructor()
                        ->getMock();
                $crypto = $this->createMock(ICrypto::class);
-               $logger = $this->createMock(ILogger::class);
+               $logger = $this->createMock(LoggerInterface::class);
                $tokenProvider = new DefaultTokenProvider($mapper, $crypto, $this->config, $logger, $this->timeFactory);
 
                /** @var \OC\User\Session $userSession */
@@ -1296,7 +1297,7 @@ class SessionTest extends \Test\TestCase {
                        ->disableOriginalConstructor()
                        ->getMock();
                $crypto = $this->createMock(ICrypto::class);
-               $logger = $this->createMock(ILogger::class);
+               $logger = $this->createMock(LoggerInterface::class);
                $tokenProvider = new DefaultTokenProvider($mapper, $crypto, $this->config, $logger, $this->timeFactory);
 
                /** @var \OC\User\Session $userSession */