8000 [Feature] Add fluent test builder for executing JSON API requests · CodingSeo/laravel-json-api@5e218be · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e218be

Browse files
committed
[Feature] Add fluent test builder for executing JSON API requests
1 parent 34ae3e7 commit 5e218be

File tree

9 files changed

+412
-80
lines changed

9 files changed

+412
-80
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ All notable changes to this project will be documented in this file. This projec
77
### Added
88
- [#348](https://github.com/cloudcreativity/laravel-json-api/issues/348)
99
Can now use route parameters in the API's URL configuration value.
10+
- New test builder class allows tests to fluently construct a test JSON API request.
1011

1112
### Changed
1213
- Minimum PHP version is now `7.2`.
1314
- Minimum Laravel version is now `6.0`.
1415
- Amended the store interface so that it always takes a string resource type and string id,
1516
instead of the deprecated resource identifier object.
1617
- Moved the `Validation\ErrorTranslator` class to `Error\Translator`.
18+
- The `Testing\MakesJsonApiRequests::jsonApi()` method no longer accepts any function arguments,
19+
and returns an instance of `Testing\TestBuilder`. This allows the developer to fluently execute
20+
test JSON API requests.
1721

1822
### Removed
1923
- The deprecated `0.x` validation implementation was removed. This deletes all interfaces

0 commit comments

Comments
 (0)
0