You are here

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

@covers ::__construct

File

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

Class

DomTest
Tests the dom process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testConfigMethodEmpty() : void {
  $configuration = [];
  $value = '<p>A simple paragraph.</p>';
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('The "method" must be set.');
  (new Dom($configuration, 'dom', []))
    ->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}