public function DomMigrationLookupTest::testTransformInvalidInput in Migrate Plus 8.5
@covers ::transform
File
- tests/
src/ Unit/ process/ DomMigrationLookupTest.php, line 144
Class
- DomMigrationLookupTest
- Tests the dom_migration_lookup process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testTransformInvalidInput() : void {
$value = 'string';
$this
->expectException(MigrateSkipRowException::class);
$this
->expectExceptionMessage('The dom_migration_lookup plugin in the destinationproperty process pipeline requires a \\DOMDocument object. You can use the dom plugin to convert a string to \\DOMDocument.');
(new DomMigrationLookup($this->exampleConfiguration, 'dom_migration_lookup', [], $this->migration, $this->processPluginManager))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}