mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
fix cs
This commit is contained in:
@@ -57,7 +57,7 @@ YAML;
|
||||
$emProphecy = $this->prophesize(EntityManagerInterface::class);
|
||||
// persist should be called for StoredObject and Motive at least once
|
||||
$emProphecy->persist(Argument::type(StoredObject::class))->shouldBeCalled();
|
||||
$emProphecy->persist(Argument::that(fn($arg) =>
|
||||
$emProphecy->persist(Argument::that(fn ($arg) =>
|
||||
// Motive class is in another namespace; just check it's an object with setLabel method
|
||||
\is_object($arg) && method_exists($arg, 'setLabel')))->shouldBeCalled();
|
||||
$emProphecy->flush()->shouldBeCalled();
|
||||
|
Reference in New Issue
Block a user