Completed
Push — master ( 0d4b62...49eab6 )
by Adrien
07:35
created

TransactionRepositoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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