Skip to content

Commit 24a549b

Browse files
authored
test(symfony): empty collection without fields (api-platform#6165)
see symfony/symfony@b341535
1 parent 643cff2 commit 24a549b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaCollectionRestrictionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testCreate(Constraint $constraint, ApiProperty $propertyMetadata
7979

8080
public static function createProvider(): \Generator
8181
{
82-
yield 'empty' => [new Collection(['fields' => []]), new ApiProperty(), ['type' => 'object', 'properties' => [], 'additionalProperties' => false]];
82+
yield 'empty' => [new Collection([]), new ApiProperty(), ['type' => 'object', 'properties' => [], 'additionalProperties' => false]];
8383

8484
$fields = [
8585
'name' => new Required([

0 commit comments

Comments
 (0)