diff --git a/tests/DependencyInjection/SonataDoctrineMongoDBAdminExtensionTest.php b/tests/DependencyInjection/SonataDoctrineMongoDBAdminExtensionTest.php index 3f438d9e..a16a2806 100644 --- a/tests/DependencyInjection/SonataDoctrineMongoDBAdminExtensionTest.php +++ b/tests/DependencyInjection/SonataDoctrineMongoDBAdminExtensionTest.php @@ -15,6 +15,7 @@ use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; use Sonata\DoctrineMongoDBAdminBundle\DependencyInjection\SonataDoctrineMongoDBAdminExtension; +use Symfony\Component\DependencyInjection\Reference; final class SonataDoctrineMongoDBAdminExtensionTest extends AbstractExtensionTestCase { @@ -52,7 +53,7 @@ public function testEntityManagerSetFactory(): void $this->assertContainerBuilderHasServiceDefinitionWithArgument( 'sonata.admin.manipulator.acl.object.doctrine_mongodb', 0, - 'doctrine_mongodb' + new Reference('doctrine_mongodb') ); }