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

testArrayLabelledTextInput() public method

    public function testArrayLabelledTextInput()
    {
        unset($this->article['required']['title']);
        $this->Form->create($this->article);
        $result = $this->Form->input('title', ['label' => ['foo' => 'bar', 'text' => 'Custom Title']]);
        $expected = ['div' => ['class' => 'form-group text'], 'label' => ['class' => 'control-label', 'for' => 'title', 'foo' => 'bar'], 'Custom Title', '/label', 'input' => ['type' => 'text', 'name' => 'title', 'id' => 'title', 'class' => 'form-control'], '/div'];
        $this->assertHtml($expected, $result);
    }