You are here

public function HtmlTagTest::testGetInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php \Drupal\Tests\Core\Render\Element\HtmlTagTest::testGetInfo()

@covers ::getInfo

File

core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php, line 23
Contains \Drupal\Tests\Core\Render\Element\HtmlTagTest.

Class

HtmlTagTest
@coversDefaultClass \Drupal\Core\Render\Element\HtmlTag @group Render

Namespace

Drupal\Tests\Core\Render\Element

Code

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