From 536ba180dfddf70156e772e2f9feee3600d66010 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 6 Oct 2015 05:47:17 +0000 Subject: [PATCH] Tests: Dequeue the styles and scripts enqueued by `Test_WP_Customize_Nav_Menus::test_enqueue_scripts()`. Fixes #34163. git-svn-id: https://develop.svn.wordpress.org/trunk@34857 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/customize/nav-menus.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/tests/customize/nav-menus.php b/tests/phpunit/tests/customize/nav-menus.php index 0e0d304a85..3649b88b6f 100644 --- a/tests/phpunit/tests/customize/nav-menus.php +++ b/tests/phpunit/tests/customize/nav-menus.php @@ -338,6 +338,9 @@ class Test_WP_Customize_Nav_Menus extends WP_UnitTestCase { $menus = new WP_Customize_Nav_Menus( $this->wp_customize ); $menus->enqueue_scripts(); $this->assertTrue( wp_script_is( 'customize-nav-menus' ) ); + + wp_dequeue_style( 'customize-nav-menus' ); + wp_dequeue_script( 'customize-nav-menus' ); } /**