summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-13 08:16:17 +0200
committerJoas Schilling <coding@schilljs.com>2020-10-13 08:16:17 +0200
commit0ad4ad31e18832878bf9b2e69cc2235c53f78dd9 (patch)
tree98786b55efcd871df46b74d98c933c79e6753d39 /tests
parent49ff48fcd3f07c229a0439748cb1469e5d11c504 (diff)
downloadnextcloud-server-0ad4ad31e18832878bf9b2e69cc2235c53f78dd9.tar.gz
nextcloud-server-0ad4ad31e18832878bf9b2e69cc2235c53f78dd9.zip
Fix more tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/User/SessionTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php
index 8fd94ffc004..d2aa0ee0259 100644
--- a/tests/lib/User/SessionTest.php
+++ b/tests/lib/User/SessionTest.php
@@ -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 */