Skip to content

Commit c89dcb8

Browse files
committed
Prepare for ILogger drop in RootCollectionTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 2b53ec3 commit c89dcb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/dav/tests/unit/Comments/RootCollectionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class RootCollectionTest extends \Test\TestCase {
4343
protected $commentsManager;
4444
/** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
4545
protected $userManager;
46-
/** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
46+
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
4747
protected $logger;
4848
/** @var \OCA\DAV\Comments\RootCollection */
4949
protected $collection;
@@ -70,24 +70,24 @@ protected function setUp(): void {
7070
$this->userSession = $this->getMockBuilder(IUserSession::class)
7171
->disableOriginalConstructor()
7272
->getMock();
73-
$this->logger = $this->getMockBuilder(ILogger::class)
73+
$this->logger = $this->getMockBuilder(LoggerInterface::class)
7474
->disableOriginalConstructor()
7575
->getMock();
7676
$this->dispatcher = new SymfonyAdapter(
7777
new EventDispatcher(
7878
new \Symfony\Component\EventDispatcher\EventDispatcher(),
7979
\OC::$server,
80-
$this->createMock(LoggerInterface::class)
80+
$this->logger
8181
),
82-
$this->createMock(LoggerInterface::class)
82+
$this->logger
8383
);
8484

8585
$this->collection = new \OCA\DAV\Comments\RootCollection(
8686
$this->commentsManager,
8787
$this->userManager,
8888
$this->userSession,
8989
$this->dispatcher,
90-
$this->logger
90+
$this->createMock(ILogger::class)
9191
);
9292
}
9393

0 commit comments

Comments
 (0)