Skip to content
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

[6.x] Fix assertJsonCount not accepting falsey keys #32655

Merged
merged 2 commits into from
May 3, 2020
Merged

[6.x] Fix assertJsonCount not accepting falsey keys #32655

merged 2 commits into from
May 3, 2020

Conversation

clugg
Copy link
Contributor

@clugg clugg commented May 3, 2020

This fixes the issue described in #32651, where assertJsonCount does not accept the key '0' due to a boolean comparison instead of a strict null comparison.

I can open another PR with the same changes for the 7.x branch if necessary (both files have been renamed between 6.x and 7.x so they cannot be merged).

@GrahamCampbell
Copy link
Member

We can still merge upwards, don't worry.

@clugg clugg changed the title [6.x] Fix assertJsonCount not accepting falsey values [6.x] Fix assertJsonCount not accepting falsey keys May 3, 2020
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