Bootstrap\Test\TestCase\View\Helper\BootstrapTraitTemplateTest::testHelperMethods PHP Method

testHelperMethods() public method

public testHelperMethods ( )
    public function testHelperMethods()
    {
        // BootstrapPaginatorHelper - TODO
        // BootstrapPaginatorHelper::prev($title, array $options = []);
        // BootstrapPaginatorHelper::next($title, array $options = []);
        // BootstrapPaginatorHelper::numbers(array $options = []); // For `prev` and `next` options.
        // BootstrapFormatHelper
        $result = $this->Form->button('i:plus');
        $this->assertHtml([['button' => ['class' => 'btn btn-default', 'type' => 'submit']], ['i' => ['class' => 'glyphicon glyphicon-plus', 'aria-hidden' => 'true']], '/i', '/button'], $result);
        $result = $this->Form->input('fieldname', ['prepend' => 'i:home', 'append' => 'i:plus', 'label' => false]);
        $this->assertHtml([['div' => ['class' => 'form-group text']], ['div' => ['class' => 'input-group']], ['span' => ['class' => 'input-group-addon']], ['i' => ['class' => 'glyphicon glyphicon-home', 'aria-hidden' => 'true']], '/i', '/span', ['input' => ['type' => 'text', 'class' => 'form-control', 'name' => 'fieldname', 'id' => 'fieldname']], ['span' => ['class' => 'input-group-addon']], ['i' => ['class' => 'glyphicon glyphicon-plus', 'aria-hidden' => 'true']], '/i', '/span', '/div', '/div'], $result);
        //BootstrapFormHelper::prepend($input, $prepend); // For $prepend.
        //BootstrapFormHelper::append($input, $append); // For $append.
    }