aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-22 12:41:30 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-24 16:21:29 +0100
commit6d354595f71f15f3d15bce70683b4bc013a6bfaf (patch)
treef60044e1ee27501e34b3bdc961dd6f887b343f19
parentf1febfe696693140a1ce4d4ed66cb96a68e6467b (diff)
downloadnextcloud-server-6d354595f71f15f3d15bce70683b4bc013a6bfaf.tar.gz
nextcloud-server-6d354595f71f15f3d15bce70683b4bc013a6bfaf.zip
Prepare for ILogger drop in RootCollectionTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/dav/tests/unit/Comments/RootCollectionTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/Comments/RootCollectionTest.php b/apps/dav/tests/unit/Comments/RootCollectionTest.php
index f34a0faf88b..8537eb9ab17 100644
--- a/apps/dav/tests/unit/Comments/RootCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/RootCollectionTest.php
@@ -43,7 +43,7 @@ class RootCollectionTest extends \Test\TestCase {
protected $commentsManager;
/** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
+ /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
/** @var \OCA\DAV\Comments\RootCollection */
protected $collection;
@@ -70,16 +70,16 @@ class RootCollectionTest extends \Test\TestCase {
$this->userSession = $this->getMockBuilder(IUserSession::class)
->disableOriginalConstructor()
->getMock();
- $this->logger = $this->getMockBuilder(ILogger::class)
+ $this->logger = $this->getMockBuilder(LoggerInterface::class)
->disableOriginalConstructor()
->getMock();
$this->dispatcher = new SymfonyAdapter(
new EventDispatcher(
new \Symfony\Component\EventDispatcher\EventDispatcher(),
\OC::$server,
- $this->createMock(LoggerInterface::class)
+ $this->logger
),
- $this->createMock(LoggerInterface::class)
+ $this->logger
);
$this->collection = new \OCA\DAV\Comments\RootCollection(
@@ -87,7 +87,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->userManager,
$this->userSession,
$this->dispatcher,
- $this->logger
+ $this->createMock(ILogger::class)
);
}