Test Failed
Pull Request — master (#4)
by Alex
03:18
created

IsNotEqualTest::testFilterWillThrowInvalidArgumentExceptionIfTheRequiredFieldNameCriteriaIsMissing()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 14
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\IsNotEqual;
8
9
/**
10
 * @covers \Arp\DoctrineQueryFilter\Filter\IsNotEqual
11
 * @covers \Arp\DoctrineQueryFilter\Filter\AbstractExpression
12
 * @covers \Arp\DoctrineQueryFilter\Filter\AbstractFilter
13
 *
14
 * @author  Alex Patterson <[email protected]>
15
 * @package ArpTest\DoctrineQueryFilter\Filter
16
 */
17
final class IsNotEqualTest extends AbstractComparisonTest
18
{
19
    /**
20
     * @var string
21
     */
22
    protected string $filterClassName = IsNotEqual::class;
23
24
    /**
25
     * @var string
26
     */
27
    protected string $expressionMethodName = 'neq';
28
29
    /**
30
     * @var string
31
     */
32
    protected string $expressionSymbol = '!=';
33
34
    /**
35
     * @return array
36
     */
37
    public function getFilterWillApplyFilteringData(): array
38
    {
39
        return [
40
            [
41
                [
42
                    'name' => 'test',
43
                    'field' => 'hello',
44
                    'value' => 123,
45
                ],
46
            ],
47
        ];
48
    }
49
}
50