BootstrapUI\Test\TestCase\View\Helper\FormHelperTest::testBasicRadioInput PHP Method

testBasicRadioInput() public method

public testBasicRadioInput ( )
    public function testBasicRadioInput()
    {
        $this->Form->create($this->article);
        $result = $this->Form->input('published', ['type' => 'radio', 'options' => ['Yes', 'No']]);
        $expected = [['div' => ['class' => 'form-group radio']], ['label' => true], 'Published', '/label', ['input' => ['type' => 'hidden', 'name' => 'published', 'value' => '']], ['div' => ['class' => 'radio']], ['label' => ['for' => 'published-0']], ['input' => ['type' => 'radio', 'name' => 'published', 'value' => 0, 'id' => 'published-0']], 'Yes', '/label', '/div', ['div' => ['class' => 'radio']], ['label' => ['for' => 'published-1']], ['input' => ['type' => 'radio', 'name' => 'published', 'value' => 1, 'id' => 'published-1']], 'No', '/label', '/div', '/div'];
        $this->assertHtml($expected, $result);
    }