public function ImgTagToEmbedFilterTest::testTransformToEntityEmbed in Media Migration 8
Tests transform to entity embed.
@dataProvider providerTestTransformToEntityEmbed
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ ImgTagToEmbedFilterTest.php, line 61
Class
- ImgTagToEmbedFilterTest
- Tests the ImgTagToEmbedFilter migration process plugin.
Namespace
Drupal\Tests\media_migration\Unit\Plugin\migrate\processCode
public function testTransformToEntityEmbed(string $input_value, string $expected_value) {
$this
->setSetting(MediaMigration::MEDIA_TOKEN_DESTINATION_FILTER_SETTINGS, MediaMigration::MEDIA_TOKEN_DESTINATION_FILTER_ENTITY_EMBED);
$this->plugin = new ImgTagToEmbedFilter([], 'img_tag_to_embed', [], $this->migration, $this->uuidOracle
->reveal(), $this->logger
->reveal(), NULL);
$this
->assertEquals($expected_value, $this->plugin
->transform($input_value, $this->migrateExecutable, $this->row, 'destination_property'));
}