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
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
mock-image-editor.php
mock-mailer.php Update PHPMailer to 5.2.7 from 5.2.4. 2014-03-03 20:24:31 +00:00
testcase-ajax.php
testcase-xmlrpc.php
testcase.php Reset post types and taxonomies before each unit test. 2014-10-09 00:57:26 +00:00
trac.php
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