Passed
Pull Request — master (#4)
by Alex
03:23
created

IsNullTest::getFilterWillApplyFilteringData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\DoctrineQueryFilter\Filter;
6
7
use Arp\DoctrineQueryFilter\Filter\IsNull;
8
9
/**
10
 * @covers \Arp\DoctrineQueryFilter\Filter\IsNull
11
 *
12
 * @author  Alex Patterson <[email protected]>
13
 * @package ArpTest\DoctrineQueryFilter\Filter
14
 */
15
final class IsNullTest extends AbstractComparisonTest
16
{
17
    /**
18
     * @var string
19
     */
20
    protected string $filterClassName = IsNull::class;
21
22
    /**
23
     * @var string
24
     */
25
    protected string $expressionMethodName = 'isnull';
26
27
    /**
28
     * @var string
29
     */
30
    protected string $expressionSymbol = 'IS NULL';
31
32
    /**
33
     * @return array
34
     */
35
    public function getFilterWillApplyFilteringData(): array
36
    {
37
        return [
38
            [
39
                [
40
                    'name' => 'test',
41
                    'field' => 'hello',
42
                    'value' => 123,
43
                ],
44
            ],
45
        ];
46
    }
47
}
48