Make WordPress Core


Ignore:
Timestamp:
08/31/2020 03:57:50 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/vars.php

    r47018 r48908  
    1010    /**
    1111     * @ticket 35115
     12     * @ticket 51154
    1213     */
    1314    public function testPublicQueryVarsAreAsExpected() {
     
    7172                'post_format',
    7273                'rest_route',
     74                'sitemap',
     75                'sitemap-subtype',
     76                'sitemap-stylesheet',
    7377
    7478            ),
Note: See TracChangeset for help on using the changeset viewer.