public static function carouselPrevLink($label, $url = '#', $htmlOptions = array())
{
self::addCssClass('carousel-control left', $htmlOptions);
$htmlOptions['data-slide'] = 'prev';
return self::link($label, $url, $htmlOptions);
}
public function testCarouselPrevLink() { $I = $this->codeGuy; $html = TbHtml::carouselPrevLink('Previous', '#', array('class' => 'link')); $a = $I->createNode($html, 'a.carousel-control.left'); $I->seeNodeCssClass($a, 'link'); $I->seeNodeAttributes($a, array('href' => '#', 'data-slide' => 'prev')); $I->seeNodeText($a, 'Previous'); }