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

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

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