From 4c4803f1172646b09b743fe73d5e5be2fff06bec Mon Sep 17 00:00:00 2001 From: Jonathan Flueren Date: Tue, 3 May 2022 23:05:15 +0200 Subject: [PATCH] Change to mock in migration tests for better compatibility --- tests/Integration/Migration/TimestampMigrationTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Integration/Migration/TimestampMigrationTest.php b/tests/Integration/Migration/TimestampMigrationTest.php index a7a9584..d674f26 100644 --- a/tests/Integration/Migration/TimestampMigrationTest.php +++ b/tests/Integration/Migration/TimestampMigrationTest.php @@ -5,7 +5,6 @@ namespace tests\Integration\Migration; use Doctrine\DBAL\Platforms\PostgreSQL100Platform; use OC\AllConfig; -use OC\Log; use OC\Migration\SimpleOutput; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper; @@ -16,7 +15,6 @@ use OCP\IConfig; use OCP\IDBConnection; use test\TestCase; use tests\Helper\DatabaseTransaction; -use tests\Helper\Writer\TestWriter; /** * @group DB @@ -92,7 +90,7 @@ class TimestampMigrationTest extends TestCase ); $timestampMigration = new TimestampMigration($this->dbConnection, $this->migrationConfig); - $timestampMigration->run(new SimpleOutput(new Log(new TestWriter()), "gpoddersync")); + $timestampMigration->run($this->createMock(SimpleOutput::class)); $scienceEpisodeActionAfterConversion = $this->episodeActionMapper->findByEpisodeIdentifier( $scienceEpisodeActionEntity->getGuid(),