Gc\View\Helper\FormMultiCheckboxTest::testRenderOptions PHP Method

testRenderOptions() public method

Test
public testRenderOptions ( ) : void
return void
    public function testRenderOptions()
    {
        $this->element->setValueOptions(array(1, 2, 3));
        $this->element->setValue(1);
        $this->element->setAttribute('id', 'test');
        $this->element->setAttribute('class', 'input-checkbox');
        $this->object->setLabelPosition('prepend');
        $markup = $this->object->render($this->element);
        $this->assertContains('type="checkbox"', $markup);
        $this->assertContains('name="foo[]"', $markup);
    }