PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 13
  1. v3.2.0 28 Mar 2026
    Release notes

    Added

    • Package now supports Laravel 13.
    Open source →
  2. v3.1.0 24 Feb 2025
    Release notes

    Added

    • Package now supports Laravel 11 and 12.
    Open source →
  3. v3.0.2 30 Nov 2024
    Release notes

    Remove PHP 8.4 deprecation notices

    Open source →
    Release notes

    Changed

    • Bump cloudcreativity/json-api-testing package to fix deprecation notices in PHP 8.4.
    Open source →
  4. v3.0.1 26 Nov 2024
    Release notes

    Remove PHP 8.4 deprecation notices

    Open source →
    Release notes

    Fixed

    • Remove deprecation notices on PHP 8.4.
    Open source →
  5. v3.0.0 12 Mar 2024
    Release notes

    Changed

    • 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.
    Open source →
  6. v2.1.0 18 Feb 2023
    Release notes

    Add support for PHPUnit 10

    Open source →
    Release notes

    Added

    • Add support for PHPUnit 10.
    Open source →
  7. v2.0.0 14 Feb 2023
    Release notes

    Changed

    • Upgraded to Laravel 10 and set minimum PHP version to 8.1.
    Open source →
  8. v1.1.2 15 Jan 2023
    Release notes

    Fix bug in setting test data

    Open source →
    Release notes

    Fixed

    • The TestBuilder::withData() method no longer converts the provided data to a Collection if it implements the JsonSerializable 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 the TestBuilder 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.
    Open source →
  9. v1.1.1 27 Feb 2022
    Release notes

    Fix Symfony response return false for content.

    Open source →
    Release notes

    Fixed

    • 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 a string in version 4 of that dependency. This has been fixed by adding a TestResponse::getContent() method that returns an empty string if the Symfony method returns false.
    Open source →
  10. v1.1.0 08 Feb 2022
    Release notes

    Refer to changelog for details.

    Open source →
    Release notes

    Added

    • Package now supports Laravel 9.
    • Added support for cloudcreativity/json-api-testing version 4.0.
    • Values passed to the test builder filter() and page methods can now include UrlRoutable 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 the query() 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() - use assertFetchedMany(), assertMeta() and assertLinks().
      • assertFetchedPageInOrder() - use assertFetchedManyInOrder(), assertMeta() and assertLinks().
      • assertFetchedEmptyPage() - use assertFetchedNone(), assertMeta() and assertLinks().
    Open source →
  11. v1.0.0 31 Jul 2021
    Release notes

    Changed

    • Updated cloudcreativity/json-api-testing dependency to 3.3.0.
    Open source →
  12. v1.0.0-beta.1 30 Mar 2021 pre-release
    Release notes

    Initial beta release. No changes since alpha.1.

    Open source →
  13. v1.0.0-alpha.1 25 Jan 2021 pre-release
    Release notes

    Initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive