@@ 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 |
@@ 331-346 (lines=16) @@ | ||
328 | $this->assertInstanceOf(DomainManagerRegistry::class, $this->container->get($domainManagerRegistry)); |
|
329 | } |
|
330 | ||
331 | public function testRepository() |
|
332 | { |
|
333 | $this->compileContainer(); |
|
334 | ||
335 | $this->assertInstanceOf( |
|
336 | DoctrineORMRepositoryFactory::class, |
|
337 | $this->container->get('lug.resource.repository.doctrine.orm.factory') |
|
338 | ); |
|
339 | ||
340 | if (class_exists(DocumentManager::class)) { |
|
341 | $this->assertInstanceOf( |
|
342 | DoctrineMongoDBRepositoryFactory::class, |
|
343 | $this->container->get('lug.resource.repository.doctrine.mongodb.factory') |
|
344 | ); |
|
345 | } |
|
346 | } |
|
347 | ||
348 | public function testRest() |
|
349 | { |