Repository navigation
REST API: Add unit test coverage for WP_REST_Icon_Collections_Controller. See #66287. - #14195
noruzzamans wants to merge 2 commits into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the 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. |
|
Hi @t-hamano, Thank you for the review! In ff96a4e, I have updated
WordPress Coding Standards ( |
|
Test report Tested ff96a4e locally against trunk:
I also checked that the new tests catch regressions: making LGTM from a testing perspective. AI assistance: Claude Code (Claude Opus 5.5) was used to run the checks above; I reviewed the results. |
Adds tests for permission checks, `_fields` filtering, the schema, and collection parameters, and verifies that the built-in non-public `core-admin` collection is not exposed. Developed in: #14195 Props noruzzaman, rejaulalomkhan, wildworks. Fixes #66287. git-svn-id: https://develop.svn.wordpress.org/trunk@64310 602fd350-edb4-49c9-b593-d223f7449a82
Adds tests for permission checks, `_fields` filtering, the schema, and collection parameters, and verifies that the built-in non-public `core-admin` collection is not exposed. Developed in: WordPress/wordpress-develop#14195 Props noruzzaman, rejaulalomkhan, wildworks. Fixes #66287. Built from https://develop.svn.wordpress.org/trunk@64310 git-svn-id: http://core.svn.wordpress.org/trunk@63460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Backports comprehensive unit test coverage for
WP_REST_Icon_Collections_Controllerfrom Gutenberg PR WordPress/gutenberg#83168 (reviewed by @t-hamano).Changes:
edit_postscapability (test_get_item_requires_permissions)._fieldsparameter on both collection and single item endpoints (test_get_items_fields_parameter,test_get_item_fields_parameter).rest-visibility-privateand built-incore-admin) are omitted from collection listing (test_get_items_omits_non_public_collections).rest_icon_collection_not_founderror via data provider (test_get_item_returns_404_for_non_public_collection).contexttoview(test_get_collection_params).Trac ticket: https://core.trac.wordpress.org/ticket/66287
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.