diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-21 11:17:14 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-24 16:21:26 +0100 |
commit | 61f7f13bd81948f6179bb8f70b6711c002ddd70e (patch) | |
tree | f1238dd97d93203637bb203d4cf649b65c8fbc4a /tests/lib/User | |
parent | e8c1f75064ae008e50daa087924de5d29368747e (diff) | |
download | nextcloud-server-61f7f13bd81948f6179bb8f70b6711c002ddd70e.tar.gz nextcloud-server-61f7f13bd81948f6179bb8f70b6711c002ddd70e.zip |
Migrate from ILogger to LoggerInterface where needed in the tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/User')
-rw-r--r-- | tests/lib/User/SessionTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php index fcd45bab5bd..0e199e5d5b5 100644 --- a/tests/lib/User/SessionTest.php +++ b/tests/lib/User/SessionTest.php @@ -24,7 +24,6 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\EventDispatcher\IEventDispatcher; use OCP\ICacheFactory; use OCP\IConfig; -use OCP\ILogger; use OCP\IRequest; use OCP\IRequestId; use OCP\ISession; @@ -33,6 +32,7 @@ use OCP\Lockdown\ILockdownManager; use OCP\Security\ISecureRandom; use OCP\User\Events\PostLoginEvent; use PHPUnit\Framework\MockObject\MockObject; +use Psr\Log\LoggerInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use OC\Security\CSRF\CsrfTokenManager; @@ -57,7 +57,7 @@ class SessionTest extends \Test\TestCase { private $userSession; /** @var ILockdownManager|MockObject */ private $lockdownManager; - /** @var ILogger|MockObject */ + /** @var LoggerInterface|MockObject */ private $logger; /** @var IEventDispatcher|MockObject */ private $dispatcher; @@ -76,7 +76,7 @@ class SessionTest extends \Test\TestCase { $this->manager = $this->createMock(Manager::class); $this->session = $this->createMock(ISession::class); $this->lockdownManager = $this->createMock(ILockdownManager::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->dispatcher = $this->createMock(IEventDispatcher::class); $this->userSession = $this->getMockBuilder(Session::class) ->setConstructorArgs([ |