Skip to content
Prev Previous commit
Next Next commit
Fix more ILogger related problems from tests
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Mar 24, 2022
commit 3546cfba1cc8f103554d1c91a7f81050ff5f0c2a
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Comments/RootCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function setUp(): void {
\OC::$server,
$this->createMock(LoggerInterface::class)
),
$this->logger
$this->createMock(LoggerInterface::class)
);

$this->collection = new \OCA\DAV\Comments\RootCollection(
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/Repair/RepairCollationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
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 {
Expand Down Expand Up @@ -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");
Expand Down
6 changes: 2 additions & 4 deletions tests/lib/Template/IconsCacherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public function testSetIconsFromValidCss() {
";
$expected = "
icon.test {
background-image: var(--icon-test);
\n background-image: var(--icon-test);
}
";

Expand All @@ -133,8 +132,7 @@ public function testSetIconsFromValidCssMultipleTimes() {
";
$expected = "
icon.test {
background-image: var(--icon-test);
\n background-image: var(--icon-test);
}
";

Expand Down