public static function collapseLink($label, $target, $htmlOptions = array())
{
$htmlOptions['data-toggle'] = 'collapse';
return self::link($label, $target, $htmlOptions);
}
public function testCollapseLink() { $I = $this->codeGuy; $html = TbHtml::collapseLink('Link', '#', array('class' => 'link')); $a = $I->createNode($html, 'a[data-toggle=collapse]'); $I->seeNodeCssClass($a, 'link'); $I->seeNodeAttribute($a, 'href', '#'); $I->seeNodeText($a, 'Link'); }