Completed
Push — master ( 2b7ec8...e65692 )
by Alex
09:34
created

BootstrapWidgetsUnitTest::testGetTemplate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Mezon\Gui\WidgetsRegistry\Tests;
3
4
class BootstrapWidgetsUnitTest extends \PHPUnit\Framework\TestCase
5
{
6
7
    /**
8
     * Getting template
9
     */
10
    public function testGetTemplate()
11
    {
12
        // setup
13
        $bootstrapWidgets = new \Mezon\Gui\WidgetsRegistry\BootstrapWidgets();
14
15
        // test body
16
        $widget = $bootstrapWidgets->getWidget('table-cell-start');
17
18
        // assertions
19
        $this->assertStringContainsString('<td', $widget, 'Content of the widget "table-cell-start" was not loaded');
20
    }
21
}
22