diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index a09c713bf..ddd1f9fd9 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -4077,6 +4077,26 @@ class FormHelperTest extends CakeTestCase { $this->assertTextNotContains('"Model1Field"', $result); } +/** + * Test that radio() accepts an array for label + * + * @return void + */ + public function testRadioLabelArray() { + $result = $this->Form->input('Model.field', array( + 'type' => 'radio', + 'legend' => false, + 'label' => array( + 'class' => 'checkbox float-left', + ), + 'options' => array('1' => 'Option A', '2' => 'Option B.') + )); + $this->assertTextContains( + '', + $result + ); + } + /** * testSelect method *