| @@ 208-213 (lines=6) @@ | ||
| 205 | ||
| 206 | $definition = $container->getDefinition('doctrine.orm.default_entity_manager'); |
|
| 207 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 208 | if (method_exists($definition, 'getFactory')) { |
|
| 209 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 210 | } else { |
|
| 211 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 212 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 213 | } |
|
| 214 | ||
| 215 | $this->assertDICConstructorArguments($definition, [ |
|
| 216 | new Reference('doctrine.dbal.default_connection'), |
|
| @@ 289-294 (lines=6) @@ | ||
| 286 | ||
| 287 | $definition = $container->getDefinition('doctrine.orm.default_entity_manager'); |
|
| 288 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 289 | if (method_exists($definition, 'setFactory')) { |
|
| 290 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 291 | } else { |
|
| 292 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 293 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 294 | } |
|
| 295 | ||
| 296 | $this->assertDICConstructorArguments($definition, [ |
|
| 297 | new Reference('doctrine.dbal.default_connection'), |
|
| @@ 322-327 (lines=6) @@ | ||
| 319 | ||
| 320 | $definition = $container->getDefinition('doctrine.orm.em1_entity_manager'); |
|
| 321 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 322 | if (method_exists($definition, 'getFactory')) { |
|
| 323 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 324 | } else { |
|
| 325 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 326 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 327 | } |
|
| 328 | ||
| 329 | $arguments = $definition->getArguments(); |
|
| 330 | $this->assertInstanceOf('Symfony\Component\DependencyInjection\Reference', $arguments[0]); |
|
| @@ 346-351 (lines=6) @@ | ||
| 343 | ||
| 344 | $definition = $container->getDefinition('doctrine.orm.em2_entity_manager'); |
|
| 345 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 346 | if (method_exists($definition, 'getFactory')) { |
|
| 347 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 348 | } else { |
|
| 349 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 350 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 351 | } |
|
| 352 | ||
| 353 | $arguments = $definition->getArguments(); |
|
| 354 | $this->assertInstanceOf('Symfony\Component\DependencyInjection\Reference', $arguments[0]); |
|
| @@ 301-306 (lines=6) @@ | ||
| 298 | ||
| 299 | $definition = $container->getDefinition('doctrine.orm.default_entity_manager'); |
|
| 300 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 301 | if (method_exists($definition, 'getFactory')) { |
|
| 302 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 303 | } else { |
|
| 304 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 305 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 306 | } |
|
| 307 | ||
| 308 | $this->assertEquals(['default' => 'doctrine.orm.default_entity_manager'], $container->getParameter('doctrine.entity_managers'), 'Set of the existing EntityManagers names is incorrect.'); |
|
| 309 | $this->assertEquals('%doctrine.entity_managers%', $container->getDefinition('doctrine')->getArgument(2), 'Set of the existing EntityManagers names is incorrect.'); |
|
| @@ 398-403 (lines=6) @@ | ||
| 395 | ||
| 396 | $definition = $container->getDefinition('doctrine.orm.default_entity_manager'); |
|
| 397 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 398 | if (method_exists($definition, 'getFactory')) { |
|
| 399 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 400 | } else { |
|
| 401 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 402 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 403 | } |
|
| 404 | ||
| 405 | $this->assertDICConstructorArguments($definition, [ |
|
| 406 | new Reference('doctrine.dbal.default_connection'), |
|
| @@ 467-472 (lines=6) @@ | ||
| 464 | ||
| 465 | $definition = $container->getDefinition('doctrine.orm.default_entity_manager'); |
|
| 466 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass()); |
|
| 467 | if (method_exists($definition, 'getFactory')) { |
|
| 468 | $this->assertEquals(['%doctrine.orm.entity_manager.class%', 'create'], $definition->getFactory()); |
|
| 469 | } else { |
|
| 470 | $this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getFactoryClass()); |
|
| 471 | $this->assertEquals('create', $definition->getFactoryMethod()); |
|
| 472 | } |
|
| 473 | ||
| 474 | $this->assertDICConstructorArguments($definition, [ |
|
| 475 | new Reference('doctrine.dbal.default_connection'), |
|