Skip to content

Commit ead1aa2

Browse files
committed
Set styles_inline_size_limit to unlimited for test
1 parent 53ef0c6 commit ead1aa2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/phpunit/tests/template.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ public function data_wp_hoist_late_printed_styles(): array {
15181518
'early-css',
15191519
'early-inline-css',
15201520
'wp-emoji-styles-inline-css',
1521-
'wp-block-library-css',
1521+
'wp-block-library-inline-css',
15221522
'wp-block-library-theme-inline-css',
15231523
'classic-theme-styles-inline-css',
15241524
'global-styles-inline-css',
@@ -1620,6 +1620,14 @@ public function test_wp_hoist_late_printed_styles( ?Closure $set_up, array $them
16201620
add_theme_support( $theme_support );
16211621
}
16221622

1623+
// Set the styles_inline_size_limit to unlimited in order to prevent changes from invalidating the snapshots.
1624+
add_filter(
1625+
'styles_inline_size_limit',
1626+
static function (): int {
1627+
return PHP_INT_MAX;
1628+
}
1629+
);
1630+
16231631
add_filter(
16241632
'wp_get_custom_css',
16251633
static function () {

0 commit comments

Comments
 (0)