Skip to content

Conversation

azim-kordpour
Copy link
Contributor

Hi,
To improve code readability and prevent typos, I added Enum support for assertJsonPath in this PR.

// Before
$this->postJson('book')
     ->assertJsonPath('data.status', BookingStatus::Booked->value);
// After
$this->postJson('book')
     ->assertJsonPath('data.status', BookingStatus::Booked);

@azim-kordpour
Copy link
Contributor Author

@shaedrich
Thank you for the suggestion.

@shaedrich
Copy link
Contributor

@azim-kordpour You're welcome.

@taylorotwell taylorotwell merged commit 573684f into laravel:12.x Apr 23, 2025
58 checks passed
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.

3 participants