Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class BillRepositoryTest extends \PHPUnit\Framework\TestCase |
||
10 | { |
||
11 | public function testDI() |
||
12 | { |
||
13 | $this->assertInstanceOf(BillRepository::class, $this->getRepo()); |
||
14 | } |
||
15 | |||
16 | protected function getRepo(): BillRepository |
||
17 | { |
||
18 | return $this->getEntityManager()->getRepository(Bill::class); |
||
|
|||
19 | } |
||
20 | |||
21 | protected function getEntityManager(): EntityManagerInterface |
||
22 | { |
||
23 | return $this->getContainer()->get(EntityManagerInterface::class); |
||
24 | } |
||
25 | |||
26 | protected function getContainer() |
||
29 | } |
||
30 | } |
||
31 |