You are here

public function DomHelperTraitTest::setUp in Embed 8

Overrides UnitTestCase::setUp

File

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

Class

DomHelperTraitTest
Tests \Drupal\embed\DomHelperTrait.

Namespace

Drupal\Tests\embed\Unit

Code

public function setUp() {
  $this->document = Html::load('<outer><test foo="bar" namespace:foo="bar"><test bar="foo"></test></test></outer>');
  $this->node = $this->document
    ->getElementsByTagName('body')
    ->item(0)->firstChild->firstChild;
}