FileRepositoryTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApplicationTest\Repository;
6
7
use Application\Model\File;
8
use Application\Repository\FileRepository;
9
use ApplicationTest\Repository\Traits\LimitedAccessSubQuery;
10
11
class FileRepositoryTest extends AbstractRepositoryTest
12
{
13
    use LimitedAccessSubQuery;
14
15
    private FileRepository $repository;
16
17
    protected function setUp(): void
18
    {
19
        parent::setUp();
20
        $this->repository = _em()->getRepository(File::class);
21
    }
22
23
    public function providerGetAccessibleSubQuery(): iterable
24
    {
25
        yield ['anonymous', []];
26
        yield ['student', [13000]];
27
        yield ['junior', []];
28
        yield ['senior', []];
29
        yield ['administrator', [13000]];
30
    }
31
}
32