public function testIcon()
{
$type = 'home';
$options = ['id' => 'my-home', 'class' => 'my-home-class'];
// Default icon (Glyphicon)
$this->assertHtml([['i' => ['class' => 'glyphicon glyphicon-' . $type, 'aria-hidden' => 'true']], '/i'], $this->Html->icon($type));
$this->assertHtml([['i' => ['class' => $options['class'] . ' glyphicon glyphicon-' . $type, 'id' => $options['id'], 'aria-hidden' => 'true']], '/i'], $this->Html->icon($type, $options));
// FontAwesome icon
$this->assertHtml([['i' => ['class' => 'fa fa-' . $type, 'aria-hidden' => 'true']], '/i'], $this->Html->faIcon($type));
$this->assertHtml([['i' => ['class' => $options['class'] . ' fa fa-' . $type, 'id' => $options['id'], 'aria-hidden' => 'true']], '/i'], $this->Html->faIcon($type, $options));
}