Closed
Description
I am not sure about whether this is a bug or by design: if a checkbox is bound to a boolean FALSE value, the checkbox is checked by default.
Failing test case:
public function testBindWithFalseValueUnchecked()
{
$form = $this->factory->create('checkbox', null, array(
'value' => '1',
));
$form->bind(false);
$this->assertFalse($form->getData());
$view = $form->createView();
$this->assertFalse($view->vars['checked']);
}