Skip to content

Commit 53ef0c6

Browse files
committed
Remove unhelpful test cases since print_late_styles filter seems to have no effect
1 parent ec25a5f commit 53ef0c6

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tests/phpunit/tests/template.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,27 +1532,6 @@ public function data_wp_hoist_late_printed_styles(): array {
15321532
'core-block-supports-inline-css',
15331533
),
15341534
),
1535-
'classic_theme_opt_out_separate_block_styles_and_no_footer_printing' => array(
1536-
'set_up' => static function () {
1537-
add_filter( 'should_load_separate_core_block_assets', '__return_false' );
1538-
add_filter( 'print_late_styles', '__return_false' );
1539-
},
1540-
'theme_supports' => $theme_supports,
1541-
'expected_head' => array(
1542-
'wp-img-auto-sizes-contain-inline-css',
1543-
'early-css',
1544-
'early-inline-css',
1545-
'wp-emoji-styles-inline-css',
1546-
'wp-block-library-css',
1547-
'wp-block-library-theme-inline-css',
1548-
'classic-theme-styles-inline-css',
1549-
'global-styles-inline-css',
1550-
'normal-css',
1551-
'normal-inline-css',
1552-
'wp-custom-css',
1553-
),
1554-
'expected_footer' => array(),
1555-
),
15561535
'wp_block_styles_not_supported' => array(
15571536
'set_up' => null,
15581537
'theme_supports' => array(),
@@ -1566,14 +1545,6 @@ public function data_wp_hoist_late_printed_styles(): array {
15661545
),
15671546
'expected_footer' => array(),
15681547
),
1569-
'disabled_printing_late_styles' => array(
1570-
'set_up' => static function () {
1571-
add_filter( 'print_late_styles', '__return_false', 1000 );
1572-
},
1573-
'theme_supports' => $theme_supports,
1574-
'expected_head' => $expected_head_styles,
1575-
'expected_footer' => array(),
1576-
),
15771548
'_wp_footer_scripts_removed' => array(
15781549
'set_up' => static function () {
15791550
remove_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );

0 commit comments

Comments
 (0)