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

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

    public function testInlineCheckboxInput()
    {
        $this->Form->create($this->article);
        $result = $this->Form->input('published', ['inline' => true]);
        $expected = ['input' => ['type' => 'hidden', 'name' => 'published', 'value' => 0], 'label' => ['class' => 'checkbox-inline', 'for' => 'published'], ['input' => ['type' => 'checkbox', 'name' => 'published', 'id' => 'published', 'value' => 1]], 'Published', '/label'];
        $this->assertHtml($expected, $result);
    }