Passed
Push — master ( 6af672...0107a4 )
by Peter
07:37
created

BlockTest::filterProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Website\Grid\Filters;
6
7
use PHPUnit\Framework\TestCase;
8
9
class BlockTest extends TestCase
10
{
11
    /**
12
     * @return array
13
     */
14
    public function filterProvider(): array
15
    {
16
        return [
17
            [[], [], null],
18
        ];
19
    }
20
21
    /**
22
     * @dataProvider filterProvider
23
     *
24
     * @param string[]    $intents
25
     * @param array       $attributes
26
     * @param string|null $tag
27
     */
28
    public function testFilter(array $intents, array $attributes, ?string $tag)
29
    {
30
        $sut = new Block($intents, $attributes, $tag);
31
32
        $html = (string)$sut;
33
34
        $this->assertStringContainsString('<div class="hidable">', $html);
35
        $this->assertStringContainsString('filter-identifier', $html);
36
        $this->assertStringContainsString('filter-title', $html);
37
    }
38
}
39