Change to mock in migration tests for better compatibility

This commit is contained in:
Jonathan Flueren 2022-05-03 23:05:15 +02:00 committed by thrillfall
parent 0b4f9346f0
commit 4c4803f117
1 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@ namespace tests\Integration\Migration;
use Doctrine\DBAL\Platforms\PostgreSQL100Platform; use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
use OC\AllConfig; use OC\AllConfig;
use OC\Log;
use OC\Migration\SimpleOutput; use OC\Migration\SimpleOutput;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper;
@ -16,7 +15,6 @@ use OCP\IConfig;
use OCP\IDBConnection; use OCP\IDBConnection;
use test\TestCase; use test\TestCase;
use tests\Helper\DatabaseTransaction; use tests\Helper\DatabaseTransaction;
use tests\Helper\Writer\TestWriter;
/** /**
* @group DB * @group DB
@ -92,7 +90,7 @@ class TimestampMigrationTest extends TestCase
); );
$timestampMigration = new TimestampMigration($this->dbConnection, $this->migrationConfig); $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( $scienceEpisodeActionAfterConversion = $this->episodeActionMapper->findByEpisodeIdentifier(
$scienceEpisodeActionEntity->getGuid(), $scienceEpisodeActionEntity->getGuid(),