From fce7c44907a57dad298cd48d50910cf57726646e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 10 Oct 2022 20:48:32 +0200 Subject: [PATCH] Fix return value for initializeObject in ScopePickerTest --- .../ChillMainBundle/Tests/Form/Type/ScopePickerTypeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Tests/Form/Type/ScopePickerTypeTest.php b/src/Bundle/ChillMainBundle/Tests/Form/Type/ScopePickerTypeTest.php index 869bbfeae..d64f68951 100644 --- a/src/Bundle/ChillMainBundle/Tests/Form/Type/ScopePickerTypeTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Form/Type/ScopePickerTypeTest.php @@ -110,7 +110,7 @@ final class ScopePickerTypeTest extends TypeTestCase $em = $this->prophesize(EntityManagerInterface::class); $em->getClassMetadata(Scope::class)->willReturn($entityManager->getClassMetadata(Scope::class)); $em->contains(Argument::type(Scope::class))->willReturn(true); - $em->initializeObject(Argument::type(Scope::class))->willReturn(null); + $em->initializeObject(Argument::type(Scope::class))->will(static fn ($o) => $o); $emRevealed = $em->reveal(); $managerRegistry = $this->prophesize(ManagerRegistry::class); $managerRegistry->getManager(Argument::any())->willReturn($emRevealed);