Skip to content
Permalink
Browse files

Ceeram suggested this change #322 (comment)

  • Loading branch information...
ingk committed Nov 24, 2011
1 parent 61b9d77 commit 6757891a33ec0d5cbf369780e659e4a0013046b4
Showing with 22 additions and 0 deletions.
  1. +22 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -3366,6 +3366,28 @@ public function testRadioDisabled() {
'/fieldset'
);
$this->assertTags($result, $expected);
$result = $this->Form->radio(
'Model.field',
array('option A', 'option B'),
array('disabled' => 'disabled', 'value' => 'option A')
);
$expected = array(
'fieldset' => array(),
'legend' => array(),
'Field',
'/legend',
array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '0', 'id' => 'ModelField0', 'disabled' => 'disabled', 'checked' => 'checked')),
array('label' => array('for' => 'ModelField0')),
'option A',
'/label',
array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '1', 'id' => 'ModelField1', 'disabled' => 'disabled')),
array('label' => array('for' => 'ModelField1')),
'option B',
'/label',
'/fieldset'
);
$this->assertTags($result, $expected);
}
/**

0 comments on commit 6757891

Please sign in to comment.
You can’t perform that action at this time.