[5.5] Validation in select field for boolean value of selected option (#490)

* [5.5] Validation in select field for boolean value of selected option

* Adjustment
This commit is contained in:
Anderson Friaça authored and Tom Shafer committed 2018-02-12 06:19:55 -08:00
1 parent 215f20b8c2
commit b79edc7acf
2 files changed
+10 -2

No files matched your search

+6
View File
@@ -464,6 +464,12 @@ class FormBuilderTest extends PHPUnit_Framework_TestCase
'<select name="countries"><option value="1" selected="selected">L</option><option value="2">M</option></select>',
$result
);
$select = $this->formBuilder->select('avc', [1 => 'Yes', 0 => 'No'], true, ['placeholder' => 'Select']);
$this->assertEquals(
'<select name="avc"><option value="">Select</option><option value="1" selected>Yes</option><option value="0" >No</option></select>',
$select
);
}
public function testSelectCollection()