diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index d6a04fde1..93093d5dc 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -827,6 +827,10 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->checkbox('Model.field', array('id'=>'theID', 'value' => 'myvalue')); $this->assertEqual($result, ''); + $this->Form->validationErrors['Model']['field'] = 0; + $result = $this->Form->checkbox('Model.field', array('value' => 'myvalue')); + $this->assertEqual($result, ''); + $this->Form->validationErrors['Model']['field'] = 1; $this->Form->data['Contact']['published'] = 1; $result = $this->Form->checkbox('Contact.published', array('id'=>'theID'));