You are here

public function MediaWysiwygFilterTest::testMediaWysiwygFilterTransform in Media Migration 8

Test the MediaWysiwygFilter plugin's transform.

@dataProvider providerTransformTest

Parameters

string|string[] $input_value: The transformed value.

string|string[] $expected_value: The expected value.

File

tests/src/Unit/Plugin/migrate/process/MediaWysiwygFilterTest.php, line 38

Class

MediaWysiwygFilterTest
Tests the MediaWysiwygFilter migration process plugin.

Namespace

Drupal\Tests\media_migration\Unit\Plugin\migrate\process

Code

public function testMediaWysiwygFilterTransform($input_value, $expected_value) {
  $migration_plugin_manager = $this
    ->prophesize(MigrationPluginManagerInterface::class);
  $this->plugin = new MediaWysiwygFilter([], 'media_wysiwyg_filter', [], $this->migration, NULL, $migration_plugin_manager
    ->reveal(), $this->uuidOracle
    ->reveal());
  $this
    ->assertEquals($expected_value, $this->plugin
    ->transform($input_value, $this->migrateExecutable, $this->row, 'destination_property'));
}