From d4c47d636428a5b51d1793cb13c2fc18b7cc2841 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 11 Feb 2015 22:44:20 +0000 Subject: [PATCH] Fix failing `Tests_Dependencies_jQuery::test_wp_script_is_dep_enqueued` test. [31370] has broken the test because the Customizer test enqueues some scripts. Unset `$GLOBALS['wp_scripts']` on tearDown() so other tests will start with zero enqueued scripts. see #30936. fixes #31302. git-svn-id: https://develop.svn.wordpress.org/trunk@31426 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/customize/widgets.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/customize/widgets.php b/tests/phpunit/tests/customize/widgets.php index a0fd532f88..8decbefde6 100644 --- a/tests/phpunit/tests/customize/widgets.php +++ b/tests/phpunit/tests/customize/widgets.php @@ -38,6 +38,7 @@ class Tests_WP_Customize_Widgets extends WP_UnitTestCase { parent::tearDown(); $this->manager = null; unset( $GLOBALS['wp_customize'] ); + unset( $GLOBALS['wp_scripts'] ); } function set_customized_post_data( $customized ) {