Changeset 58952 for trunk/tests/phpunit/tests/dependencies/scripts.php
- Timestamp:
- 08/29/2024 06:04:02 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r58163 r58952 3118 3118 public function test_wp_get_script_polyfill() { 3119 3119 global $wp_scripts; 3120 $script_name = ' wp-polyfill-importmap';3121 $test_script = 'HTMLScriptElement.supports && HTMLScriptElement.supports(" importmap")';3122 $script_url = 'https://example.com/ wp-polyfill-importmap.js';3120 $script_name = 'tmp-polyfill-foo'; 3121 $test_script = 'HTMLScriptElement.supports && HTMLScriptElement.supports("foo")'; 3122 $script_url = 'https://example.com/polyfill-foo.js'; 3123 3123 wp_register_script( $script_name, $script_url ); 3124 3124 … … 3134 3134 $expected = '( ' . $test_script . ' ) || document.write( \'<script src="' . $script_url . '"></scr\' + \'ipt>\' );'; 3135 3135 3136 $this->assert Equals( $expected, $polyfill );3136 $this->assertSame( $expected, $polyfill ); 3137 3137 } 3138 3138
Note: See TracChangeset
for help on using the changeset viewer.