diff --git a/tests/unit/e_formTest.php b/tests/unit/e_formTest.php index 5afebb237..605e729e3 100644 --- a/tests/unit/e_formTest.php +++ b/tests/unit/e_formTest.php @@ -373,17 +373,39 @@ class e_formTest extends \Codeception\Test\Unit { } - +*/ public function testCheckbox() { + $result = $this->_frm->checkbox('name', 2, 2); + $expected = ""; + $this->assertEquals($expected,$result); + } public function testCheckboxes() { + $opts = array( + 1 => "one", + 2 => "two", + 3 => "three" + ); + + + $result = $this->_frm->checkboxes('name', $opts, array(2=>'two')); + $expected = "
"; + $this->assertEquals($expected,$result); + + $result = $this->_frm->checkboxes('name', $opts, 2, array('useKeyValues'=> 1)); + $expected = ""; + $this->assertEquals($expected,$result); + + $result = $this->_frm->checkboxes('name', $opts, 'two', array('useLabelValues'=> 1)); + $expected= ""; + $this->assertEquals($expected,$result); } - +/* public function testCheckbox_label() {