OwnerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSorting() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApplicationTest\Api\Input\Sorting;
6
7
use Application\Model\Message;
8
use Application\Model\User;
9
use Ecodev\Felix\Testing\Api\Input\Sorting\AbstractSorting;
10
11
class OwnerTest extends AbstractSorting
12
{
13
    public function testSorting(): void
14
    {
15
        $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn () => $this->getSortedQueryResult(_types(), Message::class, 'owner'));
16
17
        self::assertSame([
18
            11002,
19
            11001,
20
        ], $result);
21
    }
22
}
23