You are here

public function DomTest::testExportNonRootInvalidInput 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::testExportNonRootInvalidInput()

@covers ::export

File

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

Class

DomTest
Tests the dom process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testExportNonRootInvalidInput() : void {
  $configuration['method'] = 'export';
  $this
    ->expectException(MigrateException::class);
  $this
    ->expectExceptionMessage('Cannot export a "string".');
  (new Dom($configuration, 'dom', []))
    ->transform('string is not DOMDocument', $this->migrateExecutable, $this->row, 'destinationproperty');
}