Skip to content

Commit

Permalink
Merge pull request #89 from def-studio/wraps_response_in_test_response
Browse files Browse the repository at this point in the history
wrap responses to TestResponse
  • Loading branch information
fabio-ivona authored Nov 20, 2021
2 parents a8e2b55 + 293483d commit f6018e2
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 32 deletions.
6 changes: 6 additions & 0 deletions docs/content/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file. For a full
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

### [v1.6.1](https://github.com/pestphp/defstudio-plugin-laravel-expectations/compare/v1.6.0...v1.6.1) - 2021-11-20

**Changed**

- responses are authomatically wrapped in TestResponse objects when used in responses expectations

### [v1.6.0](https://github.com/pestphp/defstudio-plugin-laravel-expectations/compare/v1.5.0...v1.6.0) - 2021-11-15

**Added**
Expand Down
4 changes: 4 additions & 0 deletions docs/content/en/expectations/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ fullscreen: false
position: 10
---

<alert type="info">**Note: this plugin wraps Responses to TestResponse, so expectations in this page can be used both with get()/post() calls and with object returned from response() helpers.</alert>



### `toBeDownload()`

Assert that the response offers a file download.
Expand Down
Loading

0 comments on commit f6018e2

Please sign in to comment.