Skip to content

Commit 5d1ba9f

Browse files
committed
Ensure wp-emoji-loader.js is present for test_wp_hoist_late_printed_styles
1 parent 4ceb527 commit 5d1ba9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/phpunit/tests/template.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,9 @@ function (): void {
16771677
* @dataProvider data_wp_hoist_late_printed_styles
16781678
*/
16791679
public function test_wp_hoist_late_printed_styles( ?Closure $set_up, int $inline_size_limit, array $expected_styles ): void {
1680+
// `_print_emoji_detection_script()` assumes `wp-includes/js/wp-emoji-loader.js` is present:
1681+
self::touch( ABSPATH . WPINC . '/js/wp-emoji-loader.js' );
1682+
16801683
switch_theme( 'default' );
16811684
global $wp_styles;
16821685
$wp_styles = null;

0 commit comments

Comments
 (0)