Gc\View\Helper\FormCheckboxTest::testRenderWithClassAndId PHP Method

testRenderWithClassAndId() public method

Test
public testRenderWithClassAndId ( ) : void
return void
    public function testRenderWithClassAndId()
    {
        $this->element->setValue('checked');
        $this->element->setAttribute('id', 'bar');
        $this->element->setAttribute('class', 'input-checkbox');
        $markup = $this->object->render($this->element);
        $this->assertContains('checked="checked"', $markup);
        $this->assertContains('class="input-checkbox"', $markup);
    }