Remove html5 theme support on tearDown() so theme settings don't leak into other tests.

git-svn-id: https://develop.svn.wordpress.org/trunk@27795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-03-27 20:54:08 +00:00
parent 7b7e5305c7
commit 17e4da2bd8

View File

@ -37,6 +37,7 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
$wpdb->query( 'ROLLBACK' );
$wp_query = new WP_Query();
$post = null;
remove_theme_support( 'html5' );
remove_filter( 'query', array( $this, '_create_temporary_tables' ) );
remove_filter( 'query', array( $this, '_drop_temporary_tables' ) );
remove_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) );