laravel-json-api/testing
Test helpers for JSON:API compliant APIs.
v3.2.0
1.3M downloads/mo
#4278 most downloaded on Packagist
laravel-json-api/testing
What this package is like to depend on
Last release 4 months ago
28 Mar 2026
Release timing varies
gaps range from 3 weeks to 13 months
Nearly every release is documented
notes for 11 of 11 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
13 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
13 releases · Jan 2021 to Mar 2026
2022
2023
2024
2025
2026
Releases
latest 13-
v3.2.028 Mar 2026 -
v3.1.024 Feb 2025 -
v3.0.230 Nov 2024Release notes
Open source →Changed
- Bump
cloudcreativity/json-api-testingpackage to fix deprecation notices in PHP 8.4.
- Bump
-
v3.0.126 Nov 2024 -
v3.0.012 Mar 2024Release notes
Open source →Changed
- Package is now licensed under the MIT license.
- BREAKING Package now requires Laravel 11.
- BREAKING Package now requires
cloudcreativity/json-api-testingversion 6. - Minimum PHP version is now
8.2.
-
v2.1.018 Feb 2023 -
v2.0.014 Feb 2023 -
v1.1.215 Jan 2023Release notes
Open source →Fixed
- The
TestBuilder::withData()method no longer converts the provided data to aCollectionif it implements theJsonSerializableinterface. 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 theTestBuilderclass 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
-
v1.1.127 Feb 2022Release notes
Open source →Fixed
- The Symfony response class can return
falsefor 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 astringin version 4 of that dependency. This has been fixed by adding aTestResponse::getContent()method that returns an empty string if the Symfony method returnsfalse.
- The Symfony response class can return
-
v1.1.008 Feb 2022Release notes
Open source →Added
- Package now supports Laravel 9.
- Added support for
cloudcreativity/json-api-testingversion 4.0. - Values passed to the test builder
filter()andpagemethods can now includeUrlRoutableobjects (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.
Deprecated
- 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().
-
v1.0.031 Jul 2021 -
v1.0.0-beta.130 Mar 2021 pre-release -
v1.0.0-alpha.125 Jan 2021 pre-release