Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant widget API endpoint tests #32298

Merged
merged 1 commit into from May 28, 2021

Conversation

@noisysocks
Copy link
Member

@noisysocks noisysocks commented May 28, 2021

Removes the Widgets REST API unit tests from the Gutenberg plugin.

These are redundant as these endpoints and their tests now exist in Core.

https://github.com/WordPress/wordpress-develop/blob/master/tests/phpunit/tests/rest-api/rest-widgets-controller.php
https://github.com/WordPress/wordpress-develop/blob/master/tests/phpunit/tests/rest-api/rest-widget-types-controller.php
https://github.com/WordPress/wordpress-develop/blob/master/tests/phpunit/tests/rest-api/rest-sidebars-controller.php

If we attempt to run them in the Gutenberg plugin then we will have failures because we always run Gutenberg CI against the latest WordPress trunk meaning the REST API endpoints will be registered twice (once in core, once again in the plugin).

Copy link
Contributor

@talldan talldan left a comment

LGTM

@talldan talldan merged commit 2dedf14 into trunk May 28, 2021
19 checks passed
19 checks passed
@github-actions[bot]
Bump version
Details
@github-actions[bot]
Checks (12)
Details
@github-actions[bot]
Admin - 1 Admin - 1
Details
@github-actions[bot]
Run performance tests
Details
@github-actions[bot]
pull-request-automation
Details
@github-actions[bot]
pull-request-automation
Details
@github-actions[bot]
test (gutenberg-editor-initial-html)
Details
@github-actions[bot]
test (12.2, gutenberg-editor-initial-html)
Details
@github-actions[bot]
JavaScript (12)
Details
@github-actions[bot]
Checks (14)
Details
@github-actions[bot]
Admin - 2 Admin - 2
Details
@github-actions[bot]
JavaScript (14)
Details
@github-actions[bot]
Admin - 3 Admin - 3
Details
@github-actions[bot]
Admin - 4 Admin - 4
Details
@github-actions[bot]
Build Release Artifact
Details
@github-actions[bot]
Create Release Draft and Attach Asset
Details
@github-actions[bot]
Mobile
Details
Block-based Widgets Editor automation moved this from PRs needing review to Done May 28, 2021
@talldan talldan deleted the remove/redundant-widgets-rest-api-tests branch May 28, 2021
@github-actions github-actions bot added this to the Gutenberg 10.8 milestone May 28, 2021
@noisysocks
Copy link
Member Author

@noisysocks noisysocks commented Jun 8, 2021

Cherry-picked this into wp/trunk so as to fix PHP unit test failures in that branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants