| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | public function testLoadingWithoutMetaData() |
||
| 13 | { |
||
| 14 | $entityFqn = static::TEST_PROJECT_ROOT_NAMESPACE |
||
| 15 | .'\\'.AbstractGenerator::ENTITIES_FOLDER_NAME |
||
| 16 | .'\\Yet\\Another\\TestEntity'; |
||
| 17 | $repositoryFqn = static::TEST_PROJECT_ROOT_NAMESPACE |
||
| 18 | .'\\'.AbstractGenerator::ENTITY_REPOSITORIES_NAMESPACE |
||
| 19 | .'\\Yet\\Another\\TestEntityRepository'; |
||
| 20 | $this->getEntityGenerator()->generateEntity($entityFqn); |
||
| 21 | $this->setupCopiedWorkDir(); |
||
| 22 | $entityFqn = $this->getCopiedFqn($entityFqn); |
||
| 23 | $repositoryFqn = $this->getCopiedFqn($repositoryFqn); |
||
| 24 | /** |
||
| 25 | * @var AbstractEntityRepository $repository |
||
| 26 | */ |
||
| 27 | $repository = new $repositoryFqn($this->getEntityManager()); |
||
| 28 | $this->assertInstanceOf($repositoryFqn, $repository); |
||
| 29 | $expected = ltrim($entityFqn, '\\'); |
||
| 30 | $actual = $repository->getClassName(); |
||
| 31 | $this->assertSame($expected, $actual); |
||
| 32 | } |
||
| 34 |