You are here

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