Skip to content

Tests: Port the Gutenberg tests of the action links and the view config schema - #14518

Closed
jorgefilipecosta wants to merge 1 commit into
WordPress:trunkfrom
jorgefilipecosta:add/entity-actions-view-config-test-parity
Closed

jorgefilipecosta wants to merge 1 commit into
WordPress:trunkfrom
jorgefilipecosta:add/entity-actions-view-config-test-parity

Conversation

@jorgefilipecosta

Copy link
Copy Markdown
Member

Ports the Gutenberg PHPUnit tests that have no Core counterpart yet, for code Core already has.

This PR adds:

It leaves out test_get_items_wp_navigation_default_view, which needs the wp_navigation view config of #13296.

Trac tickets: https://core.trac.wordpress.org/ticket/63670, https://core.trac.wordpress.org/ticket/66327, https://core.trac.wordpress.org/ticket/65981

Testing Instructions

Verify unit tests are passing:

npm run test:php -- --group restapi --filter 'test_trash_action_does_not_exist|test_homepage_action_links|test_get_item_schema'

Use of AI Tools

AI assistance: Yes
Used for: porting the tests from Gutenberg and drafting this description; reviewed and edited by me.


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.

…ig schema.

Adds the Gutenberg cases Core lacks: the trash action link is absent in the view context and when the user cannot delete the post, the homepage and posts page action links of the pages in a collection are compacted as the editors read them, and the view config schema describes the table column styles.

See #63670, #66327, #65981.
@jorgefilipecosta
jorgefilipecosta marked this pull request as ready for review October 19, 2026 21:01
@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. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props jorgefilipecosta.

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

wporg-sync pushed a commit that referenced this pull request Oct 20, 2026
Adds the Gutenberg PHPUnit tests that have no Core counterpart yet, for code Core already has:
- The `action-trash` link is absent in the `view` context and when the user cannot delete the post.
- The `action-set-homepage` and `action-set-posts-page` links of pages in a collection are compacted as `wp:action-set-homepage` and `wp:action-set-posts-page`, the keys the core actions read.
- The view config schema describes the table column styles.

Developed in: #14518

Props jorgefilipecosta.
See #63670, #66327, #65981.

git-svn-id: https://develop.svn.wordpress.org/trunk@64596 602fd350-edb4-49c9-b593-d223f7449a82
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Oct 20, 2026
Adds the Gutenberg PHPUnit tests that have no Core counterpart yet, for code Core already has:
- The `action-trash` link is absent in the `view` context and when the user cannot delete the post.
- The `action-set-homepage` and `action-set-posts-page` links of pages in a collection are compacted as `wp:action-set-homepage` and `wp:action-set-posts-page`, the keys the core actions read.
- The view config schema describes the table column styles.

Developed in: WordPress/wordpress-develop#14518

Props jorgefilipecosta.
See #63670, #66327, #65981.
Built from https://develop.svn.wordpress.org/trunk@64596


git-svn-id: http://core.svn.wordpress.org/trunk@63746 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant