|
|
@@ -297,6 +297,12 @@ class Zend_View_Helper_FormCheckboxTest extends PHPUnit_Framework_TestCase
|
|
|
|
|
|
$test = $this->helper->formCheckbox('foo', 1, array(), array(1,0));
|
|
|
$this->assertContains('checked="checked"', $test);
|
|
|
+
|
|
|
+ $test = $this->helper->formCheckbox('foo', 0, array(), array('checked'=>1, 'unchecked'=>0));
|
|
|
+ $this->assertNotContains('checked="checked"', $test);
|
|
|
+
|
|
|
+ $test = $this->helper->formCheckbox('foo', 0, array(), array(1,0));
|
|
|
+ $this->assertNotContains('checked="checked"', $test);
|
|
|
}
|
|
|
}
|
|
|
|