|
|
|
@ -211,13 +211,13 @@ class HtmlTest extends TestCase
|
|
|
|
|
$this->assertEquals('<input type="radio" class="a" name="test" checked>', Html::radio('test', true, array('class' => 'a', 'value' => null))); |
|
|
|
|
$this->assertEquals('<input type="hidden" name="test" value="0"><input type="radio" class="a" name="test" value="2" checked>', Html::radio('test', true, array('class' => 'a' , 'uncheck' => '0', 'value' => 2))); |
|
|
|
|
|
|
|
|
|
$this->assertEquals('<div class="radio"><label class="bbb"><input type="checkbox" class="a" name="test" checked> ccc</label></div>', Html::radio('test', true, array( |
|
|
|
|
$this->assertEquals('<div class="radio"><label class="bbb"><input type="radio" class="a" name="test" checked> ccc</label></div>', Html::radio('test', true, array( |
|
|
|
|
'class' => 'a', |
|
|
|
|
'value' => null, |
|
|
|
|
'label' => 'ccc', |
|
|
|
|
'labelOptions' => array('class' =>'bbb'), |
|
|
|
|
))); |
|
|
|
|
$this->assertEquals('<input type="hidden" name="test" value="0"><div class="radio"><label><input type="checkbox" class="a" name="test" value="2" checked> ccc</label></div>', Html::radio('test', true, array( |
|
|
|
|
$this->assertEquals('<input type="hidden" name="test" value="0"><div class="radio"><label><input type="radio" class="a" name="test" value="2" checked> ccc</label></div>', Html::radio('test', true, array( |
|
|
|
|
'class' => 'a', |
|
|
|
|
'uncheck' => '0', |
|
|
|
|
'label' => 'ccc', |
|
|
|
|