All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning and this changelog format.
- Package now supports Laravel 11 and 12.
- Bump
cloudcreativity/json-api-testing
package to fix deprecation notices in PHP 8.4.
- Remove deprecation notices on PHP 8.4.
- Package is now licensed under the MIT license.
- BREAKING Package now requires Laravel 11.
- BREAKING Package now requires
cloudcreativity/json-api-testing
version 6. - Minimum PHP version is now
8.2
.
- Add support for PHPUnit 10.
- Upgraded to Laravel 10 and set minimum PHP version to
8.1
.
- The
TestBuilder::withData()
method no longer converts the provided data to aCollection
if it implements theJsonSerializable
interface. This change was required because Laravel changed how they converted objects to collections. It is not strictly necessary to convert objects that implement the JSON serializable interface, because they will be converted when the test JSON value is JSON encoded. Technically this is a breaking fix if theTestBuilder
class has been extended. However, this change is being done as a bug fix because the bug was caused by a minor release of Laravel.
- The Symfony response class can return
false
for the response content. This caused a fatal error when the content was passed to JSON:API assertions - as the assertion methods type-hint the content as astring
in version 4 of that dependency. This has been fixed by adding aTestResponse::getContent()
method that returns an empty string if the Symfony method returnsfalse
.
- Package now supports Laravel 9.
- Added support for
cloudcreativity/json-api-testing
version 4.0. - Values passed to the test builder
filter()
andpage
methods can now includeUrlRoutable
objects (i.e. models). Routable objects are converted to their route key value. This also applies when a filter or page value is set via thequery()
method.
- The following page assertions will be removed in the next major release. You should use the fluent methods instead to
assert the resources fetched, meta and links. Deprecated methods are:
assertFetchedPage()
- useassertFetchedMany()
,assertMeta()
andassertLinks()
.assertFetchedPageInOrder()
- useassertFetchedManyInOrder()
,assertMeta()
andassertLinks()
.assertFetchedEmptyPage()
- useassertFetchedNone()
,assertMeta()
andassertLinks()
.
- Updated
cloudcreativity/json-api-testing
dependency to3.3.0
.
Initial beta release. No changes since alpha.1
.
Initial release.