diff --git a/tests/phpunit/tests/widgets/text-widget.php b/tests/phpunit/tests/widgets/text-widget.php index c50cf31e68..c84b24bef4 100644 --- a/tests/phpunit/tests/widgets/text-widget.php +++ b/tests/phpunit/tests/widgets/text-widget.php @@ -29,14 +29,16 @@ class Test_WP_Widget_Text extends WP_UnitTestCase { /** * Clean up global scope. * - * @global WP_Scripts $wp_scripts - * @global WP_Styles $wp_style + * @global WP_Scripts $wp_scripts + * @global WP_Styles $wp_style + * @global WP_Customize_Manager $wp_customize */ function clean_up_global_scope() { - global $wp_scripts, $wp_styles; + global $wp_scripts, $wp_styles, $wp_customize; parent::clean_up_global_scope(); - $wp_scripts = null; - $wp_styles = null; + $wp_scripts = null; + $wp_styles = null; + $wp_customize = null; } /**