cloudcreativity/json-api-testing package to fix deprecation notices in PHP 8.4.cloudcreativity/json-api-testing version 6.8.2.8.1.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.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.cloudcreativity/json-api-testing version 4.0.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.assertFetchedPage() - use assertFetchedMany(), assertMeta() and assertLinks().assertFetchedPageInOrder() - use assertFetchedManyInOrder(), assertMeta() and assertLinks().assertFetchedEmptyPage() - use assertFetchedNone(), assertMeta() and assertLinks().cloudcreativity/json-api-testing dependency to 3.3.0.Initial beta release. No changes since alpha.1.
Initial release.
How can I help you explore Laravel packages today?