[wp-trac] [WordPress Trac] #51154: sitemaps should be initialized before each test is run

WordPress Trac noreply at wordpress.org
Mon Aug 31 17:51:43 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 commit dev-reviewed        |     Focuses:
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48914" 48914]:
 {{{
 #!CommitTicketReference repository="" revision="48914"
 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.
 Merges [48908] to the 5.5 branch.
 Fixes #51154.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51154#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list