function HtmlTagTest::testGetInfo
@covers ::getInfo
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ HtmlTagTest.php, line 18
Class
- HtmlTagTest
- @coversDefaultClass \Drupal\Core\Render\Element\HtmlTag[[api-linebreak]] @group Render
Namespace
Drupal\Tests\Core\Render\ElementCode
public function testGetInfo() {
$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.