Skip to content

Commit

Permalink
docs: testing added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonej authored Dec 8, 2021
1 parent 1b6364a commit b05e6e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,6 @@ class Example extends Model

(new Example)->toResource();
```

## Testing
Testing endpoints that respond with enhanced resources is recommended to be done using Laravel's existing response assertions. One approach to creating resource asserter objects to help simplify the process that leverages functionality provided by enhanced resources can be found [here](https://gist.github.com/Jasonej/4d76d916a888b4ffe1894782ddd7af32).

0 comments on commit b05e6e2

Please sign in to comment.