You are here

public function DomHelperTraitTest::testReplaceNodeContent in Embed 8

Test DomHelperTrait::replaceNodeContent().

@dataProvider providerTestReplaceNodeContent

File

tests/src/Unit/DomHelperTraitTest.php, line 93

Class

DomHelperTraitTest
Tests \Drupal\embed\DomHelperTrait.

Namespace

Drupal\Tests\embed\Unit

Code

public function testReplaceNodeContent($content, $expected_output) {
  $this
    ->replaceNodeContent($this->node, $content);
  $this
    ->assertEquals($expected_output, Html::serialize($this->document));
}