public function hiddenInput($options = [])
{
$options = array_merge($this->inputOptions, $options);
$this->adjustLabelFor($options);
$this->parts['{input}'] = Html::activeHiddenInput($this->model, $this->attribute, $options);
return $this;
}
public function testHiddenInput() { $expectedValue = <<<EOD <input type="hidden" id="dynamicmodel-attributename" class="form-control" name="DynamicModel[attributeName]"> EOD; $this->activeField->hiddenInput(); $this->assertEquals($expectedValue, $this->activeField->parts['{input}']); }