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

Tests: use assertCount where applicable #4968

Closed

Conversation

Ayesh
Copy link

@Ayesh Ayesh commented Aug 4, 2023

Trac ticket: https://core.trac.wordpress.org/ticket/58956

Some of the assertEquals and assertSame calls that compare array/iterable counts can be replaced with assertCount calls to indicate the intent better. I hope I'm not derailing the ticket with this PR, but hopefully you will find it relevant in the same context.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@Ayesh Ayesh marked this pull request as ready for review August 4, 2023 09:43
@aaronjorbin aaronjorbin mentioned this pull request Sep 29, 2023
@aaronjorbin
Copy link
Member

Thanks, this was committed in https://core.trac.wordpress.org/changeset/56746

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