Changeset 61526 for trunk/tests/phpunit/tests/dependencies/wpScriptTag.php
- Timestamp:
- 01/26/2026 01:21:56 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpScriptTag.php
r61482 r61526 10 10 11 11 public function get_script_tag_type_set() { 12 add_theme_support( 'html5', array( 'script' ) );13 14 12 $this->assertEqualHTML( 15 13 '<script src="https://localhost/PATH/FILE.js" type="application/javascript" nomodule></script>' . "\n", … … 23 21 ) 24 22 ); 25 26 remove_theme_support( 'html5' );27 28 $this->assertEqualHTML(29 '<script src="https://localhost/PATH/FILE.js" type="application/javascript" nomodule></script>' . "\n",30 wp_get_script_tag(31 array(32 'src' => 'https://localhost/PATH/FILE.js',33 'type' => 'application/javascript',34 'async' => false,35 'nomodule' => true,36 )37 )38 );39 23 } 40 24 … … 43 27 */ 44 28 public function test_get_script_tag_type_not_set() { 45 add_theme_support( 'html5', array( 'script' ) );46 47 29 $this->assertEqualHTML( 48 30 '<script src="https://localhost/PATH/FILE.js" nomodule></script>' . "\n", … … 55 37 ) 56 38 ); 57 58 remove_theme_support( 'html5' );59 39 } 60 40 … … 73 53 ); 74 54 75 add_theme_support( 'html5', array( 'script' ) );76 77 55 $attributes = array( 78 56 'src' => 'https://localhost/PATH/FILE.js', … … 80 58 'nomodule' => true, 81 59 ); 82 83 $this->assertEqualHTML(84 wp_get_script_tag( $attributes ),85 get_echo(86 'wp_print_script_tag',87 array( $attributes )88 )89 );90 91 remove_theme_support( 'html5' );92 60 93 61 $this->assertEqualHTML(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)