BootstrapWidgetsUnitTest::testGetTemplate()   A
last analyzed

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
use PHPUnit\Framework\TestCase;
5
use Mezon\Gui\WidgetsRegistry\BootstrapWidgets;
6
7
/**
8
 *
9
 * @psalm-suppress PropertyNotSetInConstructor
10
 */
11
class BootstrapWidgetsUnitTest extends TestCase
12
{
13
14
    /**
15
     * Getting template
16
     */
17
    public function testGetTemplate(): void
18
    {
19
        // setup
20
        $bootstrapWidgets = new BootstrapWidgets();
21
22
        // test body
23
        $widget = $bootstrapWidgets->getWidget('table-cell-start');
24
25
        // assertions
26
        $this->assertStringContainsString('<td', $widget, 'Content of the widget "table-cell-start" was not loaded');
27
    }
28
}
29