Tests #type 'html_tag'.
function testHtmlTag() {
// Test auto-closure meta tag generation.
$tag = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
'name' => 'description',
'content' => 'Drupal test',
),
);
$this
->assertEqual('<meta name="description" content="Drupal test" />' . "\n", drupal_render($tag), 'Test auto-closure meta tag generation.');
// Test title tag generation.
$tag = array(
'#type' => 'html_tag',
'#tag' => 'title',
'#value' => 'title test',
);
$this
->assertEqual('<title>title test</title>' . "\n", drupal_render($tag), 'Test title tag generation.');
}