- Timestamp:
- 10/21/2025 05:59:38 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpAddGlobalStylesForBlocks.php
r59256 r61008 288 288 * @ticket 56915 289 289 * @ticket 61165 290 * 291 * @covers ::wp_add_global_styles_for_blocks 290 292 */ 291 293 public function test_blocks_inline_styles_get_rendered() { 294 // Override wp_load_classic_theme_block_styles_on_demand(). 295 add_filter( 'should_load_block_assets_on_demand', '__return_false' ); // Needed for the .wp-block-post-featured-image assertion below. 296 292 297 $this->set_up_third_party_block(); 293 298 wp_register_style( 'global-styles', false, array(), true, true ); … … 312 317 * @ticket 57868 313 318 * @ticket 61165 319 * 320 * @covers ::wp_add_global_styles_for_blocks 314 321 */ 315 322 public function test_third_party_blocks_inline_styles_for_elements_get_rendered_when_per_block() { 316 323 $this->set_up_third_party_block(); 317 324 add_filter( 'should_load_separate_core_block_assets', '__return_true' ); 325 $this->assertTrue( wp_should_load_separate_core_block_assets(), 'Core assets are expected to load separately' ); 318 326 319 327 wp_register_style( 'global-styles', false, array(), true, true );
Note: See TracChangeset
for help on using the changeset viewer.