Skip to content

Commit 0c2fcae

Browse files
author
Konstantin Lapkovsky
committed
test: correct test case fixture.
1 parent ba53bd1 commit 0c2fcae

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

tests/SwaggerServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public static function addDataWithSecurity(): array
471471
}
472472

473473
#[DataProvider('addDataWithSecurity')]
474-
public function testAddDataWithJWTSecurity(string $security, string $requestFixture)
474+
public function testAddDataWithSecurity(string $security, string $requestFixture)
475475
{
476476
config([
477477
'auto-doc.security' => $security,

tests/fixtures/SwaggerServiceTest/tmp_data_search_roles_request_query_security.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
}
6666
]
6767
}
68-
]
68+
],
69+
"$ref": "#/definitions/getUsersroles200ResponseObject"
6970
}
7071
}
7172
},
@@ -76,7 +77,20 @@
7677
}
7778
}
7879
},
79-
"definitions": {},
80+
"definitions": {
81+
"getUsersroles200ResponseObject": {
82+
"type": "array",
83+
"properties": {
84+
"items": {
85+
"allOf": [
86+
{
87+
"type": "array"
88+
}
89+
]
90+
}
91+
}
92+
}
93+
},
8094
"info": {
8195
"description": "This is automatically collected documentation",
8296
"version": "0.0.0",

0 commit comments

Comments
 (0)