Repository navigation
Tests: Unregister custom taxonomies in wpSetObjectTerms.php - #15090
rejaulalomkhan wants to merge 1 commit into
Conversation
Props rejaulalomkhan. See #65893.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Trac Ticket MissingThis pull request is missing a link to a Trac ticket. For a contribution to be considered, there must be a corresponding ticket in Trac. To attach a pull request to a Trac ticket, please include the ticket's full URL in your pull request description. More information about contributing to WordPress on GitHub can be found in the Core Handbook. |
|
The added cleanup for The inherited reset runs in Thanks for working on test isolation. We can reopen this if an existing test or fixture fails without the cleanup and passes with it under the same environment and order. AI review · |
Description
This PR unregisters custom taxonomies in
tests/phpunit/tests/term/wpSetObjectTerms.php. Specifically:tear_down()unregisteringwptests_tax.$non_hierand$hier) intest_set_object_terms().Preventing test isolation leaks ensures that custom taxonomies registered during tests do not bleed into subsequent test suites.
Follow-up to #65893.
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.
Use of AI Tools