@@ 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 |
@@ 311-326 (lines=16) @@ | ||
308 | $this->assertInstanceOf(DomainManagerRegistry::class, $this->container->get($domainManagerRegistry)); |
|
309 | } |
|
310 | ||
311 | public function testRepository() |
|
312 | { |
|
313 | $this->compileContainer(); |
|
314 | ||
315 | $this->assertInstanceOf( |
|
316 | DoctrineORMRepositoryFactory::class, |
|
317 | $this->container->get('lug.resource.repository.doctrine.orm.factory') |
|
318 | ); |
|
319 | ||
320 | if (class_exists(DocumentManager::class)) { |
|
321 | $this->assertInstanceOf( |
|
322 | DoctrineMongoDBRepositoryFactory::class, |
|
323 | $this->container->get('lug.resource.repository.doctrine.mongodb.factory') |
|
324 | ); |
|
325 | } |
|
326 | } |
|
327 | ||
328 | public function testRest() |
|
329 | { |