Skip to content

Commit

Permalink
test: update test for api-platform#5201
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Nov 25, 2022
1 parent 7b7dcf2 commit fa2cf88
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/Serializer/ItemNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function testDenormalizeWithDefinedIri(): void
$propertyMetadataFactoryProphecy->create(Dummy::class, 'name', [])->willReturn($propertyMetadata);

$iriConverterProphecy = $this->prophesize(IriConverterInterface::class);
$iriConverterProphecy->getIriFromItem($dummy)->shouldNotBeCalled();
$iriConverterProphecy->getIriFromResource($dummy)->shouldNotBeCalled();

$resourceClassResolverProphecy = $this->prophesize(ResourceClassResolverInterface::class);
$resourceClassResolverProphecy->getResourceClass($dummy, null)->willReturn(Dummy::class);
Expand All @@ -233,15 +233,7 @@ public function testDenormalizeWithDefinedIri(): void
$propertyNameCollectionFactoryProphecy->reveal(),
$propertyMetadataFactoryProphecy->reveal(),
$iriConverterProphecy->reveal(),
$resourceClassResolverProphecy->reveal(),
null,
null,
null,
null,
false,
null,
[],
null
$resourceClassResolverProphecy->reveal()
);
$normalizer->setSerializer($serializerProphecy->reveal());

Expand Down

0 comments on commit fa2cf88

Please sign in to comment.