Skip to content

Commit

Permalink
test: add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Lapkovsky committed Dec 13, 2023
1 parent 2873164 commit 3fce8f9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/SwaggerServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ public static function getAddEmptyData(): array
'security' => 'jwt',
'savedTmpDataFixture' => 'tmp_data_request_with_empty_data_jwt',
],
[
'security' => 'query',
'savedTmpDataFixture' => 'tmp_data_request_with_empty_data_query',
],
];
}

Expand All @@ -345,6 +349,11 @@ public function testAddDataRequestWithEmptyDataLaravel(string $security, string
'name' => 'Authorization',
'in' => 'header',
'type' => 'apiKey'
],
'query' => [
'name' => 'api_key',
'in' => 'query',
'type' => 'apiKey'
]
]
]);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"swagger": "2.0",
"host": "localhost",
"basePath": "\/",
"schemes": [],
"paths": [],
"definitions": [],
"info": {
"description": "This is automatically collected documentation",
"version": "0.0.0",
"title": "Name of Your Application",
"termsOfService": "",
"contact": {
"email": "[email protected]"
}
},
"securityDefinitions": {
"query": {
"type": "apiKey",
"name": "api_key",
"in": "query"
}
}
}

0 comments on commit 3fce8f9

Please sign in to comment.