IllustrationTest::testSorting()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 18
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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