Skip to content

Commit

Permalink
Apply code review change
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Nov 16, 2023
1 parent cb14356 commit 0061330
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 0061330

Please sign in to comment.