diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 388940e33e1ea..e71b4d20e624e 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -2874,9 +2874,6 @@ function wp_enqueue_editor_format_library_assets() { /** * Sanitizes an attributes array into an attributes string to be placed inside a `\n"; - - $this->assertEqualHTML( $expected, get_echo( 'wp_print_scripts' ) ); - } - /** * Test the different protocol references in wp_enqueue_script * diff --git a/tests/phpunit/tests/dependencies/wpLocalizeScript.php b/tests/phpunit/tests/dependencies/wpLocalizeScript.php index 7ec8604d40b87..6ddf22f1df858 100644 --- a/tests/phpunit/tests/dependencies/wpLocalizeScript.php +++ b/tests/phpunit/tests/dependencies/wpLocalizeScript.php @@ -46,8 +46,6 @@ public function test_wp_localize_script_works_before_enqueue_script() { * @covers ::wp_localize_script */ public function test_wp_localize_script_outputs_safe_json() { - add_theme_support( 'html5', array( 'script' ) ); - $path = '/test.js'; $base_url = site_url( $path ); diff --git a/tests/phpunit/tests/dependencies/wpScriptTag.php b/tests/phpunit/tests/dependencies/wpScriptTag.php index 7b8c88bb9e465..57ed857ff5d6d 100644 --- a/tests/phpunit/tests/dependencies/wpScriptTag.php +++ b/tests/phpunit/tests/dependencies/wpScriptTag.php @@ -9,8 +9,6 @@ class Tests_Dependencies_wpScriptTag extends WP_UnitTestCase { public function get_script_tag_type_set() { - add_theme_support( 'html5', array( 'script' ) ); - $this->assertEqualHTML( '' . "\n", wp_get_script_tag( @@ -22,28 +20,12 @@ public function get_script_tag_type_set() { ) ) ); - - remove_theme_support( 'html5' ); - - $this->assertEqualHTML( - '' . "\n", - wp_get_script_tag( - array( - 'src' => 'https://localhost/PATH/FILE.js', - 'type' => 'application/javascript', - 'async' => false, - 'nomodule' => true, - ) - ) - ); } /** * @covers ::wp_get_script_tag */ public function test_get_script_tag_type_not_set() { - add_theme_support( 'html5', array( 'script' ) ); - $this->assertEqualHTML( '' . "\n", wp_get_script_tag( @@ -54,8 +36,6 @@ public function test_get_script_tag_type_not_set() { ) ) ); - - remove_theme_support( 'html5' ); } /** @@ -72,8 +52,6 @@ static function ( $attributes ) { } ); - add_theme_support( 'html5', array( 'script' ) ); - $attributes = array( 'src' => 'https://localhost/PATH/FILE.js', 'id' => 'utils-js-extra', @@ -87,16 +65,6 @@ static function ( $attributes ) { array( $attributes ) ) ); - - remove_theme_support( 'html5' ); - - $this->assertEqualHTML( - wp_get_script_tag( $attributes ), - get_echo( - 'wp_print_script_tag', - array( $attributes ) - ) - ); } /**