public function DomSelectTest::testTransform in Migrate Plus 8.5
@covers ::transform
@dataProvider providerTestTransform
File
- tests/
src/ Unit/ process/ DomSelectTest.php, line 22
Class
- DomSelectTest
- Tests the dom_select process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testTransform($input_string, $configuration, $output_array) : void {
$value = Html::load($input_string);
$elements = (new DomSelect($configuration, 'dom_select', []))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertEquals($output_array, $elements);
}