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:
parent
7b7e5305c7
commit
17e4da2bd8
@ -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' ) );
|
||||
|
Loading…
Reference in New Issue
Block a user