Skip to content

feat(testing): add assertJsonSubset to test response helper#1944

Open
Maarten-Dekker wants to merge 1 commit intotempestphp:3.xfrom
Maarten-Dekker:feat/testing-json-subset
Open

feat(testing): add assertJsonSubset to test response helper#1944
Maarten-Dekker wants to merge 1 commit intotempestphp:3.xfrom
Maarten-Dekker:feat/testing-json-subset

Conversation

@Maarten-Dekker
Copy link
Contributor

This PR adds a new testing helper, assertJsonSubset(). It provides recursive JSON subset matching, allowing tests to assert only specific nested keys without requiring full JSON equality. This is useful when responses include additional framework‑generated data and you only want to verify the fields relevant to the test.

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.

1 participant