Skip to content

Commit

Permalink
Adapt tests to reflect default values
Browse files Browse the repository at this point in the history
Two tests didn't handle the provided defaults properly, so I had to fix
them to now also validate that the defaults are set appropriately
  • Loading branch information
heiglandreas committed Nov 7, 2024
1 parent 3b7d652 commit 006e643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Functional/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public function testUserModel(): void
'$ref' => '#/components/schemas/User',
],
'type' => 'array',
'default' => [],
],
'dummy' => [
'$ref' => '#/components/schemas/Dummy2',
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/JMSFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public function testNamingStrategyWithConstraints(): void
'type' => 'string',
'maxLength' => 10,
'minLength' => 3,
'default' => 'default'
],
],
'required' => ['beautifulName'],
Expand Down

0 comments on commit 006e643

Please sign in to comment.