You are here

public function DomApplyStylesTest::testValidateRules in Migrate Plus 8.5

@covers ::__construct

@dataProvider providerTestConfig

File

tests/src/Unit/process/DomApplyStylesTest.php, line 73

Class

DomApplyStylesTest
Tests the dom_apply_styles process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

public function testValidateRules(array $config_overrides, $message) : void {
  $configuration = $config_overrides + $this->exampleConfiguration;
  $value = '<p>A simple paragraph.</p>';
  $this
    ->expectException(InvalidPluginDefinitionException::class);
  $this
    ->expectExceptionMessage($message);
  (new DomApplyStyles($configuration, 'dom_apply_styles', [], $this->configFactory))
    ->transform($value, $this->migrateExecutable, $this->row, 'destinationproperty');
}