Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testConstructLibraryRepository(): void |
||
19 | { |
||
20 | // Create a mock of the ManagerRegistry |
||
21 | |||
22 | /** @var ManagerRegistry&\PHPUnit\Framework\MockObject\MockObject $registry */ |
||
23 | $registry = $this->createMock(ManagerRegistry::class); |
||
24 | |||
25 | $repository = new LibraryRepository($registry); |
||
26 | |||
27 | $this->assertInstanceOf("\App\Repository\LibraryRepository", $repository); |
||
28 | } |
||
30 |