aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Bootstrap
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-04-27 15:38:12 +0200
committerGitHub <noreply@github.com>2021-04-27 15:38:12 +0200
commit99f0b104216618625114d6dc314598dc294f080d (patch)
tree5f788797751a39248cdf07a3803898ccbdb9c22c /tests/lib/AppFramework/Bootstrap
parent48c50277a92b3b37fb4a9a9e7e20a487649b99db (diff)
parent2d75868935c7eedc5f94e63a45a27875e19053dc (diff)
downloadnextcloud-server-99f0b104216618625114d6dc314598dc294f080d.tar.gz
nextcloud-server-99f0b104216618625114d6dc314598dc294f080d.zip
Merge pull request #26591 from nextcloud/techdebt/noid/less-ilogger
Less ILogger
Diffstat (limited to 'tests/lib/AppFramework/Bootstrap')
-rw-r--r--tests/lib/AppFramework/Bootstrap/CoordinatorTest.php6
-rw-r--r--tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
index 1fca34423d5..05442455cb7 100644
--- a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
+++ b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
@@ -35,9 +35,9 @@ use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\AppFramework\QueryException;
use OCP\Dashboard\IManager;
use OCP\EventDispatcher\IEventDispatcher;
-use OCP\ILogger;
use OCP\IServerContainer;
use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
use Test\TestCase;
class CoordinatorTest extends TestCase {
@@ -57,7 +57,7 @@ class CoordinatorTest extends TestCase {
/** @var IEventDispatcher|MockObject */
private $eventDispatcher;
- /** @var ILogger|MockObject */
+ /** @var LoggerInterface|MockObject */
private $logger;
/** @var Coordinator */
@@ -71,7 +71,7 @@ class CoordinatorTest extends TestCase {
$this->crashReporterRegistry = $this->createMock(Registry::class);
$this->dashboardManager = $this->createMock(IManager::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
- $this->logger = $this->createMock(ILogger::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
$this->coordinator = new Coordinator(
$this->serverContainer,
diff --git a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
index e304a63cfc4..f97ac92e887 100644
--- a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
+++ b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
@@ -29,13 +29,13 @@ use OC\AppFramework\Bootstrap\RegistrationContext;
use OCP\AppFramework\App;
use OCP\AppFramework\IAppContainer;
use OCP\EventDispatcher\IEventDispatcher;
-use OCP\ILogger;
use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
use Test\TestCase;
class RegistrationContextTest extends TestCase {
- /** @var ILogger|MockObject */
+ /** @var LoggerInterface|MockObject */
private $logger;
/** @var RegistrationContext */
@@ -44,7 +44,7 @@ class RegistrationContextTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $this->logger = $this->createMock(ILogger::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
$this->context = new RegistrationContext(
$this->logger