public function DomMigrationLookupTest::testConfigValidation in Migrate Plus 8.5
@covers ::__construct
@dataProvider providerTestConfigValidation
File
- tests/
src/ Unit/ process/ DomMigrationLookupTest.php, line 110
Class
- DomMigrationLookupTest
- Tests the dom_migration_lookup process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testConfigValidation(array $config_overrides, $message) : void {
$configuration = $config_overrides + $this->exampleConfiguration;
$value = '<p>A simple paragraph.</p>';
$this
->expectException(InvalidPluginDefinitionException::class);
$this
->expectExceptionMessage($message);
(new DomMigrationLookup($configuration, 'dom_migration_lookup', [], $this->migration, $this->processPluginManager))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}