public function DomTest::testImportNonRootInvalidInput in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 tests/src/Unit/process/DomTest.php \Drupal\Tests\migrate_plus\Unit\process\DomTest::testImportNonRootInvalidInput()
@covers ::import
File
- tests/
src/ Unit/ process/ DomTest.php, line 54
Class
- DomTest
- Tests the dom process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testImportNonRootInvalidInput() {
$configuration['method'] = 'import';
$value = [
1,
1,
];
$this
->setExpectedException(MigrateException::class, 'Cannot import a non-string value.');
(new Dom($configuration, 'dom', []))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}