Bootstrap\Test\TestCase\View\Helper\BootstrapHtmlHelperTest::testInitialize PHP Method

testInitialize() public method

public testInitialize ( )
    public function testInitialize()
    {
        $oldHtml = $this->Html;
        // Test useGlyphicon
        $type = 'home';
        $options = ['id' => 'my-home', 'class' => 'my-home-class'];
        $this->Html = new BootstrapHtmlHelper($this->View, ['useGlyphicon' => true]);
        $this->assertEquals($this->Html->icon($type, $options), $this->Html->glIcon($type, $options));
        unset($this->Html);
        $this->Html = $oldHtml;
    }