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
This commit is contained in:
Dominik Schilling (ocean90) 2015-02-11 22:44:20 +00:00
parent 0b1463c6f4
commit d4c47d6364
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {