public static function activeUneditableField($model, $attribute, $htmlOptions = array())
{
parent::resolveNameID($model, $attribute, $htmlOptions);
$value = parent::resolveValue($model, $attribute);
TbArray::removeValues(array('name', 'id'), $htmlOptions);
return self::uneditableField($value, $htmlOptions);
}
public function testActiveUneditableField() { $I = $this->codeGuy; $html = TbHtml::activeUneditableField(new Dummy(), 'uneditable', array('class' => 'span')); $span = $I->createNode($html, 'span.uneditable-input'); $I->seeNodeCssClass($span, 'span'); $I->seeNodeText($span, 'Uneditable text'); }