From dad515b2a817acd02ea8c49d77844063bc6934d4 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 20 Oct 2016 10:47:23 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/customize/selective-refresh-ajax.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/customize/selective-refresh-ajax.php b/tests/phpunit/tests/customize/selective-refresh-ajax.php index 9fab8a11f1..618cfe15b5 100644 --- a/tests/phpunit/tests/customize/selective-refresh-ajax.php +++ b/tests/phpunit/tests/customize/selective-refresh-ajax.php @@ -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' );