From 3546cfba1cc8f103554d1c91a7f81050ff5f0c2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Mon, 21 Mar 2022 15:00:13 +0100 Subject: [PATCH] Fix more ILogger related problems from tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/dav/tests/unit/Comments/RootCollectionTest.php | 2 +- tests/lib/Repair/RepairCollationTest.php | 6 +++--- tests/lib/Template/IconsCacherTest.php | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/dav/tests/unit/Comments/RootCollectionTest.php b/apps/dav/tests/unit/Comments/RootCollectionTest.php index 6cc038bb7b8..f34a0faf88b 100644 --- a/apps/dav/tests/unit/Comments/RootCollectionTest.php +++ b/apps/dav/tests/unit/Comments/RootCollectionTest.php @@ -79,7 +79,7 @@ class RootCollectionTest extends \Test\TestCase { \OC::$server, $this->createMock(LoggerInterface::class) ), - $this->logger + $this->createMock(LoggerInterface::class) ); $this->collection = new \OCA\DAV\Comments\RootCollection( diff --git a/tests/lib/Repair/RepairCollationTest.php b/tests/lib/Repair/RepairCollationTest.php index 35679eb8630..27d146fab43 100644 --- a/tests/lib/Repair/RepairCollationTest.php +++ b/tests/lib/Repair/RepairCollationTest.php @@ -11,8 +11,8 @@ namespace Test\Repair; use Doctrine\DBAL\Platforms\MySqlPlatform; use OC\Repair\Collation; use OCP\IDBConnection; -use OCP\ILogger; use OCP\Migration\IOutput; +use Psr\Log\LoggerInterface; use Test\TestCase; class TestCollationRepair extends Collation { @@ -54,14 +54,14 @@ class RepairCollationTest extends TestCase { */ private $config; - /** @var ILogger */ + /** @var LoggerInterface */ private $logger; protected function setUp(): void { parent::setUp(); $this->connection = \OC::$server->get(IDBConnection::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->config = \OC::$server->getConfig(); if (!$this->connection->getDatabasePlatform() instanceof MySqlPlatform) { $this->markTestSkipped("Test only relevant on MySql"); diff --git a/tests/lib/Template/IconsCacherTest.php b/tests/lib/Template/IconsCacherTest.php index 44e7f8075af..188c0596799 100644 --- a/tests/lib/Template/IconsCacherTest.php +++ b/tests/lib/Template/IconsCacherTest.php @@ -110,8 +110,7 @@ class IconsCacherTest extends \Test\TestCase { "; $expected = " icon.test { - - background-image: var(--icon-test); + \n background-image: var(--icon-test); } "; @@ -133,8 +132,7 @@ class IconsCacherTest extends \Test\TestCase { "; $expected = " icon.test { - - background-image: var(--icon-test); + \n background-image: var(--icon-test); } "; -- 2.39.5