OwnerTest::testSorting()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
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 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