[wp-trac] [WordPress Trac] #51154: sitemaps should be initialized before each test is run
WordPress Trac
noreply at wordpress.org
Mon Aug 31 03:58:06 UTC 2020
#51154: sitemaps should be initialized before each test is run
------------------------------+-----------------------------
Reporter: pbiron | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5.1
Component: Build/Test Tools | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48908" 48908]:
{{{
#!CommitTicketReference repository="" revision="48908"
Tests: Reset the `$wp_sitemap` global after each test, so that sitemaps
are re-initialized when the next test runs.
This ensures consistent results in query var tests, regardless of whether
they are run in isolation or as part of a larger group of tests.
Props pbiron, peterwilsoncc.
Fixes #51154.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51154#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list