BootstrapUI\Test\TestCase\View\Helper\FormHelperTest::testButtonPrependedInput PHP Метод

testButtonPrependedInput() публичный Метод

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