33All notable changes to this project will be documented in this file. This project adheres to
44[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
55
6+ ## [ 3.4.0] - 2022-01-16
7+
8+ ### Added
9+
10+ - The ` assertCreatedWithServerId ` , ` assertCreatedWithClientId ` and ` assertCreatedNoContent ` methods will now fail with a
11+ better assertion message if the Location header is missing.
12+ - New ` assertDoesntHaveIncluded ` assertion to assert that the JSON: API document does not have the top-level ` included `
13+ member.
14+ - New ` assertDoesntHaveMeta ` assertion to assert the JSON: API document does not have the top-level ` meta ` member.
15+ - New ` assertDoesntHaveLinks ` assertion to assert the JSON: API document does not have the top-level ` links ` member.
16+
17+ ### Fixed
18+
19+ - The ` assertFetchedManyInOrder ` assertion did not work if the expected ` data ` was an empty array.
20+ - The ` assertFetchedToMany ` and ` assertFetchedToManyInOrder ` assertions did not work if the expected ` data ` was an empty
21+ array.
22+
623## [ 3.3.0] - 2021-07-31
724
825### Changed
@@ -26,81 +43,95 @@ All notable changes to this project will be documented in this file. This projec
2643## [ 3.2.0] - 2020-11-25
2744
2845### Added
46+
2947- Package now supports PHP 8.
3048
3149## [ 3.1.0] - 2020-09-09
3250
3351### Added
52+
3453- Package now supports Laravel 8.
3554
3655## [ 3.0.0] - 2020-04-12
3756
3857### Added
58+
3959- Package now supports PHP Unit 9.
4060
4161### Changed
62+
4263- Dropped support for PHP Unit 7.
4364- Dropped support for Laravel 5.
4465
4566## [ 2.1.0] - 2020-03-04
4667
4768### Added
69+
4870- Package now supports Laravel 7.
4971- [ #9 ] ( https://github.com/cloudcreativity/json-api-testing/issues/9 )
50- Can now assert that there are no resources included - i.e. that the ` included ` member is not present
51- or is an empty list.
72+ Can now assert that there are no resources included - i.e. that the ` included ` member is not present or is an empty
73+ list.
5274
5375### Fixed
76+
5477- [ #10 ] ( https://github.com/cloudcreativity/json-api-testing/pull/10 )
55- Pass expected and actual values to PHPUnit's assertion in correct order.
78+ Pass expected and actual values to PHPUnit's assertion in correct order.
5679
5780## [ 2.0.0] - 2019-10-14
5881
5982### Changed
83+
6084- Minimum ` illuminate/support ` version is now ` 5.8 ` (previously ` 5.5 ` ).
6185- Minimum PHPUnit version is now ` 7.5 ` (previously ` 6.0 ` ).
6286
6387### Removed
64- - Removed the ` assertNoContent() ` method from the ` Concerns\HasHttpAssertions ` trait. Unlike other
65- assertion methods in that trait, this method refers to a HTTP status description which means it is
66- likely to collide with assertions provided by frameworks. For example, Laravel ` 6.1.0 ` introduced
67- an ` assertNoContent() ` method to its test response which is not compatible with the implementation
68- provided by this package.
88+
89+ - Removed the ` assertNoContent() ` method from the ` Concerns\HasHttpAssertions ` trait. Unlike other assertion methods in
90+ that trait, this method refers to a HTTP status description which means it is likely to collide with assertions
91+ provided by frameworks. For example, Laravel ` 6.1.0 ` introduced an ` assertNoContent() ` method to its test response
92+ which is not compatible with the implementation provided by this package.
6993
7094## [ 1.2.0] - 2019-09-04
7195
7296### Added
97+
7398- Package now supports Laravel 6.
7499
75100## [ 1.1.0] - 2019-05-23
76101
77102### Added
103+
78104- Package now supports PHPUnit 8.
79105
80106## [ 1.0.0] - 2019-02-27
81107
82108### Added
109+
83110- [ #3 ] ( https://github.com/cloudcreativity/json-api-testing/issues/3 )
84- Can now assert exact errors on a document and HTTP message.
111+ Can now assert exact errors on a document and HTTP message.
85112- [ #5 ] ( https://github.com/cloudcreativity/json-api-testing/issues/5 )
86- Can now assert a server generated id with a known id.
113+ Can now assert a server generated id with a known id.
87114
88115### Fixed
116+
89117- [ #6 ] ( https://github.com/cloudcreativity/json-api-testing/issues/6 )
90- Fixed asserting that an error exists with only an integer HTTP status code.
118+ Fixed asserting that an error exists with only an integer HTTP status code.
91119- [ #4 ] ( https://github.com/cloudcreativity/json-api-testing/issues/4 )
92- Fixed incorrect diff when asserting a resource identifier on a document that contains a resource object.
120+ Fixed incorrect diff when asserting a resource identifier on a document that contains a resource object.
93121
94122## [ 1.0.0-rc.1] - 2019-01-03
95123
96124### Added
125+
97126- New implementation using constraint classes. Assertions are now provided via the ` Assert ` and ` HttpAssert `
98- classes, with traits in the ` Concerns ` namespace for adding these to test classes.
127+ classes, with traits in the ` Concerns ` namespace for adding these to test classes.
99128
100129### Changed
130+
101131- Minimum PHP version is now ` 7.1 ` .
102132
103133### Removed
134+
104135- Package no longer supports PHPUnit 5.
105136- The previous implementation was deleted, removing these classes:
106137 - ` AbstractTraversableTester `
@@ -115,34 +146,40 @@ classes, with traits in the `Concerns` namespace for adding these to test classe
115146## [ 0.4.0] - 2018-04-29
116147
117148### Added
149+
118150- Object tester now had meta test helpers.
119151- Can now assert the order of resources within the a resource object collection.
120152
121153## [ 0.3.0] - 2018-02-08
122154
123155### Added
156+
124157- Now supports PHP 5.6 to 7.2.
125158- Now supports PHPUnit 5.7 to 7.0.
126159
127160## [ 0.2.0] - 2017-09-02
128161
129162### Removed
163+
130164- This package no longer supports PHP 5.6.
131165- Updated to PHPUnit v6.
132166
133167## [ 0.1.1] - 2017-09-02
134168
135169### Added
170+
136171- Can now assert that a resource object is one of multiple types using ` assertTypeIs() ` .
137172- Can now assert that the ` data ` member of a document is ` null ` .
138173- Can now assert that a resource object matches an expected structure.
139174- Can now assert that the ` data ` member of a document is a resource identifier.
140175- Can now assert that a document does not contain an ` errors ` member.
141176
142177### Changed
178+
143179- Added a generic JSON API object tester class containing common assertions.
144180
145181### Fixed
182+
146183- Resource object type assertion caused a PHP error.
147184
148185## [ 0.1.0] - 2017-09-02
0 commit comments