function HtmlTagTest::testGetInfo

Tests get info.

@legacy-covers ::getInfo

File

core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php, line 26

Class

HtmlTagTest
Tests Drupal\Core\Render\Element\HtmlTag.

Namespace

Drupal\Tests\Core\Render\Element

Code

public function testGetInfo() : void {
  $htmlTag = new HtmlTag([], 'test', 'test');
  $info = $htmlTag->getInfo();
  $this->assertArrayHasKey('#pre_render', $info);
  $this->assertArrayHasKey('#attributes', $info);
  $this->assertArrayHasKey('#value', $info);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.