From 70e4d6eae1fdc061545e20f0efef54b678561bf7 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Tue, 23 Jan 2024 17:13:57 +0100 Subject: [PATCH] Fix test reference --- .../SonataDoctrineMongoDBAdminExtensionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') ); }