public function testActiveUrlFieldControlGroup() { $I = $this->codeGuy; $html = TbHtml::activeUrlFieldControlGroup(new Dummy(), 'url'); $group = $I->createNode($html, 'div.control-group'); $label = $group->filter('label.control-label'); $I->seeNodeChildren($label, array('input[type=url]')); }
/** * Generates a control group with an url field for a model attribute. * @param CModel $model the data model. * @param string $attribute the attribute name. * @param array $htmlOptions additional HTML attributes. * @return string the generated row. * @see TbHtml::activeUrlFieldControlGroup */ public function urlFieldControlGroup($model, $attribute, $htmlOptions = array()) { $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions); return TbHtml::activeUrlFieldControlGroup($model, $attribute, $htmlOptions); }