You are here

public function DomTest::testExportNonRootInvalidInput in Migrate Plus 8.4

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

@covers ::export

File

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

Class

DomTest
Tests the dom process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

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