Skip to content

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

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

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.

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