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
This commit is contained in:
parent
afe594bb7c
commit
536ba180df
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user