| @@ 142-157 (lines=16) @@ | ||
| 139 | ); |
|
| 140 | } |
|
| 141 | ||
| 142 | public function testRepository() |
|
| 143 | { |
|
| 144 | $this->compileContainer(); |
|
| 145 | ||
| 146 | $this->assertInstanceOf( |
|
| 147 | DoctrineORMTranslatableRepositoryFactory::class, |
|
| 148 | $this->container->get('lug.translation.repository.doctrine.orm.factory') |
|
| 149 | ); |
|
| 150 | ||
| 151 | if (class_exists(DocumentManager::class)) { |
|
| 152 | $this->assertInstanceOf( |
|
| 153 | DoctrineMongoDBTranslatableRepositoryFactory::class, |
|
| 154 | $this->container->get('lug.translation.repository.doctrine.mongodb.factory') |
|
| 155 | ); |
|
| 156 | } |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * @param ContainerBuilder $container |
|
| @@ 322-337 (lines=16) @@ | ||
| 319 | $this->assertInstanceOf(DomainManagerRegistry::class, $this->container->get($domainManagerRegistry)); |
|
| 320 | } |
|
| 321 | ||
| 322 | public function testRepository() |
|
| 323 | { |
|
| 324 | $this->compileContainer(); |
|
| 325 | ||
| 326 | $this->assertInstanceOf( |
|
| 327 | DoctrineORMRepositoryFactory::class, |
|
| 328 | $this->container->get('lug.resource.repository.doctrine.orm.factory') |
|
| 329 | ); |
|
| 330 | ||
| 331 | if (class_exists(DocumentManager::class)) { |
|
| 332 | $this->assertInstanceOf( |
|
| 333 | DoctrineMongoDBRepositoryFactory::class, |
|
| 334 | $this->container->get('lug.resource.repository.doctrine.mongodb.factory') |
|
| 335 | ); |
|
| 336 | } |
|
| 337 | } |
|
| 338 | ||
| 339 | public function testRest() |
|
| 340 | { |
|