Fix more ILogger related problems from tests

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/31609/head
Côme Chilliet 4 years ago
parent 25e7374e80
commit 3546cfba1c
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      apps/dav/tests/unit/Comments/RootCollectionTest.php
  2. 6
      tests/lib/Repair/RepairCollationTest.php
  3. 6
      tests/lib/Template/IconsCacherTest.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(

@ -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");

@ -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);
}
";

Loading…
Cancel
Save