Tests: Fix ajax tests that fail when Twenty Seventeen is the default theme.

There are some tests who's outcome can be affected by the default theme, so we need to ensure the Twenty Seventeen functionality is unhooked while the tests are running.

See #38372.



git-svn-id: https://develop.svn.wordpress.org/trunk@38842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2016-10-20 10:47:23 +00:00
parent cf52caaac8
commit dad515b2a8
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class Test_WP_Customize_Selective_Refresh_Ajax extends WP_UnitTestCase {
// Remove actions that call add_theme_support( 'title-tag' ).
remove_action( 'after_setup_theme', 'twentyfifteen_setup' );
remove_action( 'after_setup_theme', 'twentysixteen_setup' );
remove_action( 'after_setup_theme', 'twentyseventeen_setup' );
$_SERVER['REQUEST_METHOD'] = 'POST';
do_action( 'setup_theme' );