You are here

public function DomTest::testImportNonRootInvalidInput in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/process/DomTest.php \Drupal\Tests\migrate_plus\Unit\process\DomTest::testImportNonRootInvalidInput()

@covers ::import

File

tests/src/Unit/process/DomTest.php, line 56

Class

DomTest
Tests the dom process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testImportNonRootInvalidInput() : void {
  $configuration['method'] = 'import';
  $value = [
    1,
    1,
  ];
  $this
    ->expectException(MigrateException::class);
  $this
    ->expectExceptionMessage('Cannot import a non-string value.');
  (new Dom($configuration, 'dom', []))
    ->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}