Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | } |
||
31 | |||
32 | public function testEntityManagerSetFactory(): void |
||
33 | { |
||
34 | $this->configuration = new ContainerBuilder(); |
||
35 | $this->configuration->setParameter('kernel.bundles', ['SimpleThingsEntityAuditBundle' => true]); |
||
36 | $loader = new SonataDoctrineORMAdminExtension(); |
||
37 | $loader->load([], $this->configuration); |
||
38 | |||
39 | $definition = $this->configuration->getDefinition('sonata.admin.entity_manager'); |
||
40 | |||
41 | $this->assertNotNull($definition->getFactory()); |
||
42 | $this->assertNotFalse($this->configuration->getParameter('sonata_doctrine_orm_admin.audit.force')); |
||
45 |