From 17e4da2bd84e907e834b1e40c9e16791600efd54 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 27 Mar 2014 20:54:08 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/testcase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index 5f77db201f..345c7492d0 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -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' ) );