Wordpress/tests/phpunit/includes
Boone Gorges 5e7be10860 Reset post types and taxonomies before each unit test.
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
2014-10-09 00:57:26 +00:00
..
bootstrap.php Avoid polluted $table_prefix and $_wp_switched_stack in multisite unit tests. 2014-07-01 18:51:46 +00:00
exceptions.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
factory.php Multisite: Add get_network_by_path() and wp_get_network() to begin cleanup of multisite load. 2014-02-13 23:06:12 +00:00
functions.php Allow wp_die() to die in plain text when running the test suite. 2014-06-21 19:59:28 +00:00
install.php Bring back define( 'WP_INSTALLING', true ); in phpunit/includes/install.php, which was removed in [28965]. tl;dr = wp-cli. Unit tests still pass in multisite because of the skips I added. 2014-07-04 01:38:43 +00:00
mock-fs.php Normalize slashes in WP_Filesystem_MockFS::mkdir() and WP_Filesystem_MockFS::locate_parent_node() to avoid an infinite loop on Windows. 2013-11-18 15:32:47 +00:00
mock-image-editor.php * Avoid notice by making WP_Image_Editor_Mock::test() compatible with WP_Image_Editor::test(). 2013-09-12 04:40:13 +00:00
mock-mailer.php Update PHPMailer to 5.2.7 from 5.2.4. 2014-03-03 20:24:31 +00:00
testcase-ajax.php Autosave: refactor autosave.js, use heartbeat for transport and move all "Add/Edit Post" related functionality to post.js. See #25272. 2014-01-22 04:55:37 +00:00
testcase-xmlrpc.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
testcase.php Reset post types and taxonomies before each unit test. 2014-10-09 00:57:26 +00:00
trac.php Don't use HTTPS in unit tests if OpenSSL isn't loaded. 2014-02-12 20:39:21 +00:00
utils.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
wp-profiler.php Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org) 2014-09-29 13:36:38 +00:00