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

testButtonAppendedInput() public method

    public function testButtonAppendedInput()
    {
        $this->Form->create($this->article);
        $result = $this->Form->input('title', ['append' => $this->Form->button('GO')]);
        $expected = ['div' => ['class' => 'form-group text required'], 'label' => ['class' => 'control-label', 'for' => 'title'], 'Title', '/label', ['div' => ['class' => 'input-group']], 'input' => ['type' => 'text', 'name' => 'title', 'id' => 'title', 'class' => 'form-control', 'required' => 'required'], 'span' => ['class' => 'input-group-btn'], 'button' => ['type' => 'submit', 'class' => 'btn btn-default'], 'GO', '/button', '/span', '/div', '/div'];
        $this->assertHtml($expected, $result);
    }