Changeset 61409
- Timestamp:
- 12/26/2025 11:51:28 AM (5 months ago)
- Location:
- trunk/tests/phpunit/tests/fonts/font-face
- Files:
-
- 3 edited
-
wpFontFace/generateAndPrint.php (modified) (1 diff)
-
wpPrintFontFaces.php (modified) (3 diffs)
-
wpPrintFontFacesFromStyleVariations.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/fonts/font-face/wpFontFace/generateAndPrint.php
r59259 r61409 35 35 $expected_output = sprintf( $style_element, $expected ); 36 36 37 $ this->expectOutputString( $expected_output);38 $ font_face->generate_and_print( $fonts);37 $output = get_echo( array( $font_face, 'generate_and_print' ), array( $fonts ) ); 38 $this->assertEqualHTML( $expected_output, $output ); 39 39 } 40 40 } -
trunk/tests/phpunit/tests/fonts/font-face/wpPrintFontFaces.php
r59259 r61409 38 38 $expected_output = $this->get_expected_styles_output( $expected ); 39 39 40 $ this->expectOutputString( $expected_output);41 wp_print_font_faces( $fonts);40 $output = get_echo( 'wp_print_font_faces', array( $fonts ) ); 41 $this->assertEqualHTML( $expected_output, $output ); 42 42 } 43 43 … … 61 61 62 62 CSS; 63 $this->expectOutputString( $expected_output );64 63 65 wp_print_font_faces( $fonts ); 64 $output = get_echo( 'wp_print_font_faces', array( $fonts ) ); 65 $this->assertEqualHTML( $expected_output, $output ); 66 66 } 67 67 … … 72 72 $expected_output = $this->get_expected_styles_output( $expected ); 73 73 74 $ this->expectOutputString( $expected_output);75 wp_print_font_faces();74 $output = get_echo( 'wp_print_font_faces' ); 75 $this->assertEqualHTML( $expected_output, $output ); 76 76 } 77 77 -
trunk/tests/phpunit/tests/fonts/font-face/wpPrintFontFacesFromStyleVariations.php
r59260 r61409 44 44 $expected_output = $this->get_expected_styles_output( $expected ); 45 45 46 $ this->expectOutputString( $expected_output);47 wp_print_font_faces_from_style_variations();46 $output = get_echo( 'wp_print_font_faces_from_style_variations' ); 47 $this->assertEqualHTML( $expected_output, $output ); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.