diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-21 17:00:13 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-24 18:21:27 +0300 |
commit | 3546cfba1cc8f103554d1c91a7f81050ff5f0c2a (patch) | |
tree | 4dde56dff89ee5dc53b71b3aeba9139bba499307 /tests/lib | |
parent | 25e7374e805307c100f169db7841a0e43dc43013 (diff) |
Fix more ILogger related problems from tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Repair/RepairCollationTest.php | 6 | ||||
-rw-r--r-- | tests/lib/Template/IconsCacherTest.php | 6 |
2 files changed, 5 insertions, 7 deletions
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); } "; |