[wp-trac] [WordPress Trac] #61337: Tests: Cached data in `WP_Theme_JSON_Resolver` causes cross pollution in unit tests
WordPress Trac
noreply at wordpress.org
Mon Jun 3 15:03:34 UTC 2024
#61337: Tests: Cached data in `WP_Theme_JSON_Resolver` causes cross pollution in
unit tests
--------------------------------------+------------------------
Reporter: joemcgill | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"58295" 58295]:
{{{
#!CommitTicketReference repository="" revision="58295"
Build/Test Tools: Reduce cross-pollution in
`Tests_Theme_WpAddGlobalStylesForBlocks`.
This ensures cached Theme JSON data is cleared between all test classes
that extend `WP_Theme_UnitTestCase` and fixes a few tests that would fail
in isolation, even though they full test suite would pass.
Props isabel_brison, thekt12, joemcgill.
Fixes #61337.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61337#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list