Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
Closed

6649 #6655

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions library/Zend/Form/View/Helper/FormMultiCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public function __invoke(ElementInterface $element = null, $labelPosition = null
*
* @param ElementInterface $element
* @throws Exception\InvalidArgumentException
* @throws Exception\DomainException
* @return string
*/
public function render(ElementInterface $element)
Expand All @@ -109,12 +108,6 @@ public function render(ElementInterface $element)
$name = static::getName($element);

$options = $element->getValueOptions();
if (empty($options)) {
throw new Exception\DomainException(sprintf(
'%s requires that the element has "value_options"; none found',
__METHOD__
));
}

$attributes = $element->getAttributes();
$attributes['name'] = $name;
Expand Down
8 changes: 0 additions & 8 deletions tests/ZendTest/Form/View/Helper/FormMultiCheckboxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,6 @@ public function testRenderElementWithNoNameRaisesException()
$this->helper->render($element);
}

public function testRenderElementWithNoValueOptionsRaisesException()
{
$element = new MultiCheckboxElement('foo');

$this->setExpectedException('Zend\Form\Exception\DomainException');
$this->helper->render($element);
}

public function testCanMarkSingleOptionAsSelected()
{
$element = new MultiCheckboxElement('foo');
Expand Down