| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class DomainRepositoryTest extends AbstractRepositoryTest |
||
| 12 | { |
||
| 13 | private DomainRepository $repository; |
||
| 14 | |||
| 15 | protected function setUp(): void |
||
| 19 | } |
||
| 20 | |||
| 21 | public function testGetFullNames(): void |
||
| 22 | { |
||
| 23 | $actual = $this->repository->getFullNames(Site::Tiresias); |
||
| 24 | $expected = [ |
||
| 25 | 'Test domain 9000' => 9000, |
||
| 26 | 'Test domain 9001' => 9001, |
||
| 27 | ]; |
||
| 28 | self::assertSame($expected, $actual); |
||
| 29 | |||
| 30 | $actual = $this->repository->getFullNames(Site::Dilps); |
||
| 31 | $expected = [ |
||
| 32 | 'Test domain 9002' => 9002, |
||
| 33 | 'Test domain 9003' => 9003, |
||
| 34 | ]; |
||
| 35 | self::assertSame($expected, $actual); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testGetSelfAndDescendantsSubQuery(): void |
||
| 47 | } |
||
| 48 | } |
||
| 49 |