Changeset 61416 for trunk/tests/phpunit/tests/template.php
- Timestamp:
- 12/29/2025 06:59:20 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/template.php
r61174 r61416 1678 1678 */ 1679 1679 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 1680 1683 switch_theme( 'default' ); 1681 1684 global $wp_styles; … … 1712 1715 wp_should_load_separate_core_block_assets() ? 'css/dist/block-library/common.css' : 'css/dist/block-library/style.css' 1713 1716 ); 1717 $this->ensure_style_asset_file_created( 'wp-block-library-theme', 'css/dist/block-library/theme.css' ); 1718 1714 1719 if ( wp_should_load_separate_core_block_assets() ) { 1715 1720 $this->ensure_style_asset_file_created( 'wp-block-separator', 'blocks/separator/style.css' ); … … 1828 1833 $dependency->src = includes_url( $relative_path ); 1829 1834 $path = ABSPATH . WPINC . '/' . $relative_path; 1830 if ( ! file_exists( $path ) ) { 1831 $dir = dirname( $path ); 1832 if ( ! file_exists( $dir ) ) { 1833 mkdir( $dir, 0777, true ); 1834 } 1835 self::touch( $path ); 1836 if ( 0 === filesize( $path ) ) { 1835 1837 file_put_contents( $path, "/* CSS for $handle */" ); 1836 1838 }
Note: See TracChangeset
for help on using the changeset viewer.