Skip to content

Follow-up to 16207 - #16351

Closed
mukeshpanchal27 wants to merge 1 commit into
WordPress:trunkfrom
mukeshpanchal27:follow-up/16207
Closed

mukeshpanchal27 wants to merge 1 commit into
WordPress:trunkfrom
mukeshpanchal27:follow-up/16207

Conversation

@mukeshpanchal27

@mukeshpanchal27 mukeshpanchal27 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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.

@github-actions

Copy link
Copy Markdown

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:

Props mukesh27.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@shail-mehta shail-mehta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

Making the two data providers static matches the other REST API test data providers.

@lancewillett
lancewillett requested a balanced review from Copilot November 30, 2026 20:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 static to 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 lancewillett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@lancewillett lancewillett moved this from Backlog to In review in WordPress Project Build Tooling Nov 30, 2026
wporg-sync pushed a commit that referenced this pull request Nov 30, 2026
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
@lancewillett

Copy link
Copy Markdown
Member

wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 30, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants