mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix return value for initializeObject in ScopePickerTest
This commit is contained in:
parent
4834eadc18
commit
fce7c44907
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user