diff --git a/src/Component/Tests/Symfony/EventListener/DeserializeListenerTest.php b/src/Component/Tests/Symfony/EventListener/DeserializeListenerTest.php index 3fee4eb18..7cb583792 100644 --- a/src/Component/Tests/Symfony/EventListener/DeserializeListenerTest.php +++ b/src/Component/Tests/Symfony/EventListener/DeserializeListenerTest.php @@ -14,6 +14,7 @@ namespace Sylius\Component\Resource\Tests\Symfony\EventListener; use PHPUnit\Framework\TestCase; +use Prophecy\Argument; use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\Prophecy\ObjectProphecy; use Sylius\Resource\Metadata\HttpOperation; @@ -123,7 +124,7 @@ public function it_does_nothing_if_operation_cannot_be_deserialized(): void $operation->getResource()->willReturn(new ResourceMetadata(alias: 'app.dummy', class: 'App\Resource')); $operation->canDeserialize()->willReturn(false)->shouldBeCalled(); - $this->serializer->deserialize(['food' => 'fighters'], 'App\Resource', 'json', [])->willReturn($data)->shouldNotBeCalled(); + $this->serializer->deserialize(Argument::cetera())->willReturn($data)->shouldNotBeCalled(); $this->deserializableListener->onKernelRequest($event->reveal()); }