IllustrationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSorting() 0 18 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApplicationTest\Api\Input\Sorting;
6
7
use Application\Model\Product;
8
use Application\Model\User;
9
use Ecodev\Felix\Testing\Api\Input\Sorting\AbstractSorting;
10
11
class IllustrationTest extends AbstractSorting
12
{
13
    public function testSorting(): void
14
    {
15
        $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn () => $this->getSortedQueryResult(_types(), Product::class, 'illustration'));
16
17
        self::assertSame([
18
            3000,
19
            3001,
20
            3002,
21
            3003,
22
            3004,
23
            3005,
24
            3006,
25
            3007,
26
            3008,
27
            3009,
28
            3010,
29
            3011,
30
        ], $result);
31
    }
32
}
33