Skip to content

Commit

Permalink
update OpenApiFactoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Apr 12, 2024
1 parent ecdfe89 commit f1707d2
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/OpenApi/Tests/Factory/OpenApiFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ public function testInvoke(): void
new Parameter(
name: 'page',
in: 'query',
description: 'Test modified collection page number',
description: 'Test modified collection page identifier',
required: false,
allowEmptyValue: true,
schema: ['type' => 'integer', 'default' => 1],
schema: ['type' => 'string'],
),
],
))->withOperation($baseOperation),
Expand Down Expand Up @@ -566,9 +566,8 @@ public function testInvoke(): void
'Retrieves the collection of Dummy resources.',
null,
[
new Parameter('page', 'query', 'Test modified collection page number', false, false, true, [
'type' => 'integer',
'default' => 1,
new Parameter('page', 'query', 'Test modified collection page identifier', false, false, true, [
'type' => 'string',
]),
new Parameter('itemsPerPage', 'query', 'The number of items per page', false, false, true, [
'type' => 'integer',
Expand Down Expand Up @@ -767,9 +766,8 @@ public function testInvoke(): void
'Retrieves the collection of Dummy resources.',
null,
[
new Parameter('page', 'query', 'The collection page number', false, false, true, [
'type' => 'integer',
'default' => 1,
new Parameter('page', 'query', 'The collection page identifier', false, false, true, [
'type' => 'string',
]),
new Parameter('itemsPerPage', 'query', 'The number of items per page', false, false, true, [
'type' => 'integer',
Expand Down Expand Up @@ -812,9 +810,8 @@ public function testInvoke(): void
'Retrieves the collection of Dummy resources.',
null,
[
new Parameter('page', 'query', 'The collection page number', false, false, true, [
'type' => 'integer',
'default' => 1,
new Parameter('page', 'query', 'The collection page identifier', false, false, true, [
'type' => 'string',
]),
new Parameter('itemsPerPage', 'query', 'The number of items per page', false, false, true, [
'type' => 'integer',
Expand Down Expand Up @@ -959,9 +956,8 @@ public function testInvoke(): void
'Retrieves the collection of Dummy resources.',
null,
[
new Parameter('page', 'query', 'The collection page number', false, false, true, [
'type' => 'integer',
'default' => 1,
new Parameter('page', 'query', 'The collection page identifier', false, false, true, [
'type' => 'string',
]),
new Parameter('itemsPerPage', 'query', 'The number of items per page', false, false, true, [
'type' => 'integer',
Expand Down

0 comments on commit f1707d2

Please sign in to comment.