Skip to content

Commit

Permalink
Adjusted pre-existing documentation normalizer tests to new schema du…
Browse files Browse the repository at this point in the history
…mping
  • Loading branch information
Ocramius committed Feb 19, 2020
1 parent 44f44de commit e67cf42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions tests/Swagger/Serializer/DocumentationNormalizerV2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ private function doTestNormalize(OperationMethodResolverInterface $operationMeth
'description' => 'This is an initializable but not writable property.',
]),
'dummyDate' => new \ArrayObject([
'type' => 'string',
'type' => ['string', 'null'],
'description' => 'This is a \DateTimeInterface object.',
'format' => 'date-time',
]), ],
]),
],
]),
]),
];
Expand Down Expand Up @@ -2018,7 +2019,10 @@ public function testNormalizeWithNestedNormalizationGroups(): void
]),
'relatedDummy' => new \ArrayObject([
'description' => 'This is a related dummy \o/.',
'$ref' => '#/definitions/'.$relatedDummyRef,
'oneOf' => [
['type' => 'null'],
['$ref' => '#/definitions/'.$relatedDummyRef],
],
]),
],
]),
Expand Down
2 changes: 1 addition & 1 deletion tests/Swagger/Serializer/DocumentationNormalizerV3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private function doTestNormalize(OperationMethodResolverInterface $operationMeth
'description' => 'This is an initializable but not writable property.',
]),
'dummyDate' => new \ArrayObject([
'type' => 'string',
'type' => ['string', 'null'],
'description' => 'This is a \DateTimeInterface object.',
'format' => 'date-time',
]),
Expand Down

0 comments on commit e67cf42

Please sign in to comment.