diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-12 17:14:25 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-12 22:07:04 +0200 |
commit | 49ff48fcd3f07c229a0439748cb1469e5d11c504 (patch) | |
tree | b6fb0e531e0b36920700124040056b92882263ae /tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php | |
parent | deb499d34e7e4760db22d250b4cb1449e981d98c (diff) | |
download | nextcloud-server-49ff48fcd3f07c229a0439748cb1469e5d11c504.tar.gz nextcloud-server-49ff48fcd3f07c229a0439748cb1469e5d11c504.zip |
Use PSR logger in authentication
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php')
-rw-r--r-- | tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php index a815025a509..04e0fdb527e 100644 --- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php +++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php @@ -33,8 +33,8 @@ use OC\Authentication\Token\PublicKeyTokenProvider; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IConfig; -use OCP\ILogger; use OCP\Security\ICrypto; +use Psr\Log\LoggerInterface; use Test\TestCase; class PublicKeyTokenProviderTest extends TestCase { @@ -47,7 +47,7 @@ class PublicKeyTokenProviderTest extends TestCase { private $crypto; /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */ private $config; - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */ private $logger; /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */ private $timeFactory; @@ -67,7 +67,7 @@ class PublicKeyTokenProviderTest extends TestCase { ['secret', '', '1f4h9s'], ['openssl', [], []], ]); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->time = 1313131; $this->timeFactory->method('getTime') |