Skip to content

Commit 41084b4

Browse files
aaa2000soyuka
authored andcommitted
Fix deprecation notices
1 parent a92bab9 commit 41084b4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/Swagger/Serializer/DocumentationNormalizerV2Test.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,20 +2952,15 @@ public function testNormalizeWithDefaultProperty($expectedDefault, $expectedExam
29522952

29532953
$propertyMetadataFactoryProphecy = $this->prophesize(PropertyMetadataFactoryInterface::class);
29542954
$propertyMetadataFactoryProphecy->create(DummyPropertyWithDefaultValue::class, 'foo')->shouldBeCalled()->willReturn($propertyMetadata);
2955-
$resourceClassResolverProphecy = $this->prophesize(ResourceClassResolverInterface::class);
2956-
$resourceClassResolverProphecy->isResourceClass(DummyPropertyWithDefaultValue::class)->willReturn(true);
2957-
2958-
$operationMethodResolverProphecy = $this->prophesize(OperationMethodResolverInterface::class);
2959-
$operationMethodResolverProphecy->getItemOperationMethod(DummyPropertyWithDefaultValue::class, 'get')->shouldBeCalled()->willReturn('GET');
29602955

29612956
$operationPathResolver = new CustomOperationPathResolver(new OperationPathResolver(new UnderscorePathSegmentNameGenerator()));
29622957

29632958
$normalizer = new DocumentationNormalizer(
29642959
$resourceMetadataFactoryProphecy->reveal(),
29652960
$propertyNameCollectionFactoryProphecy->reveal(),
29662961
$propertyMetadataFactoryProphecy->reveal(),
2967-
$resourceClassResolverProphecy->reveal(),
2968-
$operationMethodResolverProphecy->reveal(),
2962+
null,
2963+
null,
29692964
$operationPathResolver
29702965
);
29712966

0 commit comments

Comments
 (0)