mirror of
https://github.com/nextcloud/server.git
synced 2025-03-15 08:45:21 +00:00
Prepare for ILogger drop in RootCollectionTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
f1febfe696
commit
6d354595f7
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue