Widgets: Fix Text widget unit test which broke due to global scope not being cleaned.

Amends [42613].
See #42495.


git-svn-id: https://develop.svn.wordpress.org/trunk@42617 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2018-01-30 00:33:03 +00:00
parent d6788fec51
commit bba8d65216
1 changed files with 7 additions and 5 deletions

View File

@ -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;
}
/**