-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
PHP unit tests: remove WP_RUN_CORE_TESTS const #65631
Conversation
…onstant will negate the check for IMPORTER_PLUGIN_FOR_TESTS, which is required for core tests, but not Gutenberg (right now) See: https://core.trac.wordpress.org/ticket/61530#comment:55
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like the right fix to me! If the PHP tests pass, let's merge it.
If not, I suppose the two other options would be to see what else needs changing in GB in order for us to remove this define
, or otherwise install the importer plugin within the GB tests.
Here's hoping this does the trick! 🤞
I added the constant in #51950 to fix failing unit tests and said at the time:
It seems likely that this has happened since then. So 👍 lgtm. |
Co-authored-by: ramonjd <[email protected]> Co-authored-by: andrewserong <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 4ab648d |
A recent update in Core caused the php tests to fail.
I asked about it here: https://core.trac.wordpress.org/ticket/61530#comment:54
I got an answer here: https://core.trac.wordpress.org/ticket/61530#comment:55
Removing the
WP_RUN_CORE_TESTS
constant added in #51950 will negate the check forIMPORTER_PLUGIN_FOR_TESTS
, which is required for Core tests, but not Gutenberg (right now)Testing Instructions
Stare at the PHP tests in CI and will for them to pass. 🤞🏻