Wordpress/tests/phpunit/includes
Jonathan Desrosiers 28022ebac7 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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48914 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 17:51:23 +00:00
..
factory
phpunit6
phpunit7
abstract-testcase.php
bootstrap.php
class-basic-object.php
class-basic-subclass.php
class-jsonserializable-object.php
class-wp-fake-block-type.php
class-wp-rest-test-configurable-controller.php
class-wp-rest-test-search-handler.php
class-wp-sitemaps-empty-test-provider.php
class-wp-sitemaps-large-test-provider.php
class-wp-sitemaps-test-provider.php
exceptions.php
factory.php
functions.php
install.php
listener-loader.php
mock-fs.php
mock-image-editor.php
mock-mailer.php
normalize-xml.xsl
object-cache.php
plural-form-function.php
speed-trap-listener.php
spy-rest-server.php
testcase-ajax.php
testcase-canonical.php
testcase-rest-api.php
testcase-rest-controller.php
testcase-rest-post-type-controller.php
testcase-xml.php
testcase-xmlrpc.php
testcase.php
trac.php
utils.php
wp-profiler.php