You are here

public function DomHelperTraitTest::testSetNodeContent in Embed 8

Tests DomHelperTrait::setNodeContent().

@dataProvider providerTestSetNodeContent

File

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

Class

DomHelperTraitTest
Tests \Drupal\embed\DomHelperTrait.

Namespace

Drupal\Tests\embed\Unit

Code

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