@@ -35,7 +35,10 @@ public function testParameterFactory(): void
3535 $ nameCollection = $ this ->createStub (PropertyNameCollectionFactoryInterface::class);
3636 $ nameCollection ->method ('create ' )->willReturn (new PropertyNameCollection (['id ' , 'hydra ' , 'everywhere ' ]));
3737 $ propertyMetadata = $ this ->createStub (PropertyMetadataFactoryInterface::class);
38- $ propertyMetadata ->method ('create ' )->willReturnOnConsecutiveCalls (new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true ));
38+ $ propertyMetadata ->method ('create ' )->willReturnOnConsecutiveCalls (
39+ new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true ),
40+ new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true )
41+ );
3942 $ filterLocator = $ this ->createStub (ContainerInterface::class);
4043 $ filterLocator ->method ('has ' )->willReturn (true );
4144 $ filterLocator ->method ('get ' )->willReturn (new class implements FilterInterface {
@@ -79,7 +82,10 @@ public function testParameterFactoryNoFilter(): void
7982 $ nameCollection = $ this ->createStub (PropertyNameCollectionFactoryInterface::class);
8083 $ nameCollection ->method ('create ' )->willReturn (new PropertyNameCollection (['id ' , 'hydra ' , 'everywhere ' ]));
8184 $ propertyMetadata = $ this ->createStub (PropertyMetadataFactoryInterface::class);
82- $ propertyMetadata ->method ('create ' )->willReturnOnConsecutiveCalls (new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true ));
85+ $ propertyMetadata ->method ('create ' )->willReturnOnConsecutiveCalls (
86+ new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true ),
87+ new ApiProperty (identifier: true ), new ApiProperty (readable: true ), new ApiProperty (readable: true )
88+ );
8389 $ filterLocator = $ this ->createStub (ContainerInterface::class);
8490 $ filterLocator ->method ('has ' )->willReturn (false );
8591 $ parameter = new ParameterResourceMetadataCollectionFactory (
0 commit comments