Skip to content

Commit 89cc209

Browse files
committed
Tests: Reset the script queue after Customizer manager tests.
The preview initialization test enqueues `customize-selective-refresh`. Clear `$wp_scripts` in `tear_down()` so the selective refresh test starts with its script unenqueued. Developed in: #16158 Props ekamran. See #66755. git-svn-id: https://develop.svn.wordpress.org/trunk@65741 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d09b315 commit 89cc209

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/phpunit/tests/customize/manager.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function tear_down() {
8686

8787
$this->manager = null;
8888
unset( $GLOBALS['wp_customize'] );
89+
unset( $GLOBALS['wp_scripts'] );
8990
$_REQUEST = array();
9091
$GLOBALS['_wp_theme_features'] = self::$theme_features;
9192

0 commit comments

Comments
 (0)