public function DomTest::testConfigMethodInvalid in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 tests/src/Unit/process/DomTest.php \Drupal\Tests\migrate_plus\Unit\process\DomTest::testConfigMethodInvalid()
@covers ::__construct
File
- tests/
src/ Unit/ process/ DomTest.php, line 32
Class
- DomTest
- Tests the dom process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testConfigMethodInvalid() {
$configuration['method'] = 'invalid';
$value = '<p>A simple paragraph.</p>';
$this
->setExpectedException(\InvalidArgumentException::class, 'The "method" must be "import" or "export".');
(new Dom($configuration, 'dom', []))
->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}