Repository navigation
Follow-up to 16207 - #16351
Follow-up to 16207#16351mukeshpanchal27 wants to merge 1 commit into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
shail-mehta
left a comment
There was a problem hiding this comment.
LGTM. 👍
Making the two data providers static matches the other REST API test data providers.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for this test-only change making the two REST settings data providers static.
No open issues 🎉
What changed in this PR
This follow-up to #16207 makes the two REST settings test data providers static. It changes test declarations only; settings validation behavior remains unchanged.
Changes:
- Adds
staticto the data providers for values inside and outside the settings schema.
| File | Description |
|---|---|
tests/phpunit/tests/rest-api/rest-settings-controller.php |
Makes both schema-validation data providers static. |
Review effort: Balanced
lancewillett
left a comment
There was a problem hiding this comment.
PHPUnit 11 rejected both providers before this change and discovered all eight datasets after it. On PHPUnit 9 the full settings controller still passed in single-site and multisite, with 43 tests and 145 assertions in each. I linked the original REST settings ticket for the follow-up.
AI review · gpt-6.2-astra
Allow PHPUnit 11 to discover the eight existing settings validation cases. Follow-up to [65828]. Developed in: #16351 Props mukesh27, shailu25. See #66804. git-svn-id: https://develop.svn.wordpress.org/trunk@65833 602fd350-edb4-49c9-b593-d223f7449a82
|
PR #16351 landed in https://core.trac.wordpress.org/changeset/65833 |
Allow PHPUnit 11 to discover the eight existing settings validation cases. Follow-up to [65828]. Developed in: WordPress/wordpress-develop#16351 Props mukesh27, shailu25. See #66804. Built from https://develop.svn.wordpress.org/trunk@65833 git-svn-id: http://core.svn.wordpress.org/trunk@64862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Follow-up to #16207 for https://core.trac.wordpress.org/ticket/66804.
Use of AI Tools
N/A
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.