5e7be10860
Registering a post type or taxonomy during a unit test causes modifications to global variables. If the test fails to clean up these globals - either by neglecting to call _unregister_post_type()/_unregister_taxonomy() at all or by failing before getting a chance to do so - tests that run later in the suite can fail, leading to much gnashing of teeth. Wiping all taxonomies and restoring to the defaults before each test ensures that we always start with a clean slate. Fixes #29827. git-svn-id: https://develop.svn.wordpress.org/trunk@29860 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
.. | ||
bootstrap.php | ||
exceptions.php | ||
factory.php | ||
functions.php | ||
install.php | ||
mock-fs.php | ||
mock-image-editor.php | ||
mock-mailer.php | ||
testcase-ajax.php | ||
testcase-xmlrpc.php | ||
testcase.php | ||
trac.php | ||
utils.php | ||
wp-profiler.php |