Fix validation of array of fields + adjust tests#2656
Conversation
peterwilsoncc
left a comment
There was a problem hiding this comment.
When reviewing the tests, I noticed a typo in the query include[space] rather than include.
This results in all users been returned each time, instead of just the one admin you are aiming for. That's why you needed to check for user 1 rather than the user ID self::$admin_ids[0]
To force the right check, I'd recommend setting the included user to 1
In the data provider
- set the email to
WP_TESTS_EMAIL - set the URL to
wp_guess_url()
Other details for the admin user are hard coded within the test suite.
|
Good catch @peterwilsoncc, didn't notice the |
|
Merged in https://core.trac.wordpress.org/changeset/53327, thank you! |
This PR addresses the adjustments outlined by @peterwilsoncc
Trac ticket: https://core.trac.wordpress.org/ticket/53177
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.