public function DomTest::testImportNonRoot in Migrate Plus 8.5
Same name and namespace in other branches
- 8.4 tests/src/Unit/process/DomTest.php \Drupal\Tests\migrate_plus\Unit\process\DomTest::testImportNonRoot()
@covers ::import
File
- tests/
src/ Unit/ process/ DomTest.php, line 45
Class
- DomTest
- Tests the dom process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testImportNonRoot() : void {
$configuration['method'] = 'import';
$value = '<p>A simple paragraph.</p>';
$document = (new Dom($configuration, 'dom', []))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertTrue($document instanceof \DOMDocument);
}