--- MultiCheckboxTest.php (24593) +++ MultiCheckboxTest.php (working copy) @@ -317,6 +317,34 @@ $this->assertTrue(is_array($messages), 'Expected error message'); $this->assertArrayHasKey('isEmpty', $messages, 'Expected \'isEmpty\' error message'); } + + /** + * @group ZF-12059 + */ + public function testDisabledForAttribute() + { + $this->element->setLabel('Foo'); + + $expected = '
' + . "\n" + . '
' + . "\n" + . '
'; + $this->assertSame($expected, $this->element->render($this->getView())); + } + + /** + * @group ZF-12059 + */ + public function testDisabledForAttributeWithoutLabelDecorator() + { + $this->element->setLabel('Foo')->removeDecorator('label'); + + $expected = '
' + . "\n" + . '
'; + $this->assertSame($expected, $this->element->render($this->getView())); + } } // Call Zend_Form_Element_MultiCheckboxTest::main() if this source file is executed directly.