-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update testAddDataWithNotExistsMethodOnController testcase;
Use mockDriverGetEmptyAndSaveTmpData instead of mockDriverGetTmpData method to ensure the recieved data will be saved without any modifications;
- Loading branch information
1 parent
8b725cb
commit f54827b
Showing
2 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
tests/fixtures/SwaggerServiceTest/tmp_data_get_user_request_without_request_class.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"servers": [ | ||
{ | ||
"url": "http:\/\/localhost" | ||
} | ||
], | ||
"paths": { | ||
"/users/{id}/assign-role/{role-id}": { | ||
"get": { | ||
"tags": [ | ||
"users" | ||
], | ||
"consumes": [], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "id", | ||
"description": "", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"in": "path", | ||
"name": "role-id", | ||
"description": "", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/getUsers{id}assignRole{roleId}200ResponseObject", | ||
"type": "object" | ||
}, | ||
"example": { | ||
"id": 2, | ||
"name": "first_client", | ||
"likes_count": 23, | ||
"role": { | ||
"id": 2, | ||
"name": "client" | ||
}, | ||
"type": "reader" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [], | ||
"description": "" | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"getUsers{id}assignRole{roleId}200ResponseObject": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"likes_count": { | ||
"type": "integer" | ||
}, | ||
"role": { | ||
"type": "array" | ||
}, | ||
"type": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"info": { | ||
"description": "This is automatically collected documentation", | ||
"version": "0.0.0", | ||
"title": "Name of Your Application", | ||
"termsOfService": "", | ||
"contact": { | ||
"email": "[email protected]" | ||
} | ||
} | ||
} |