Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[12.x] Add support enum for assertJsonPath method #10389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

milwad-dev
Copy link
Contributor

Recently, the assertJsonPath method supports enum classes.

@AhmedAlaa4611
Copy link
Contributor

I will leave that here: laravel/framework#55516

@shaedrich
Copy link
Contributor

shaedrich commented May 11, 2025

I wonder, if methods that accept enums should just have an admonition right between the first paragraph and the first code sample

 #### Asserting on JSON Paths
If you would like to verify that the JSON response contains the given data at a specified path, you should use the `assertJsonPath` method:

> [!NOTE]
> The second parameter also accepts enums

```php tab=Pest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants