Completed
Push — master ( 3ac846...67b859 )
by Adrien
07:43
created

TransactionLineRepositoryTest::testFindByDebitOrCredit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 37
Code Lines 27

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 27
nc 1
nop 0
dl 0
loc 37
rs 9.488
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApplicationTest\Repository;
6
7
use Application\Model\TransactionLine;
8
use Application\Repository\TransactionLineRepository;
9
use ApplicationTest\Traits\LimitedAccessSubQuery;
10
11
/**
12
 * @group Repository
13
 */
14
class TransactionLineRepositoryTest extends AbstractRepositoryTest
15
{
16
    use LimitedAccessSubQuery;
17
18
    /**
19
     * @var TransactionLineRepository
20
     */
21
    private $repository;
22
23
    public function setUp(): void
24
    {
25
        parent::setUp();
26
        $this->repository = _em()->getRepository(TransactionLine::class);
27
    }
28
29
    public function providerGetAccessibleSubQuery(): array
30
    {
31
        $all = range(14000, 14011);
32
33
        return [
34
            ['anonymous', []],
35
            ['bookingonly', []],
36
            ['individual', []],
37
            ['member', [14000, 14002, 14003, 14004, 14008, 14011]],
38
            ['responsible', $all],
39
            ['administrator', $all],
40
        ];
41
    }
42
}
43