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

BootstrapWidgetsUnitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetTemplate() 0 10 1
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