Skip to content

Commit

Permalink
Fix test class names.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Jun 29, 2023
1 parent b29d416 commit b699043
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpunit/fonts/wpFontFace/generateAndPrint-test.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Test case for the Fonts tests.
* Test case for WP_Font_Face::generate_and_print().
*
* @package WordPress
* @subpackage Fonts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Test case for the Fonts tests.
* Test case for WP_Font_Face_Resolver::get_fonts_from_theme_json().
*
* @package WordPress
* @subpackage Fonts
Expand All @@ -25,7 +25,7 @@
* @group fonts
* @covers WP_Font_Face_Resolver::get_fonts_from_theme_json
*/
class Tests_Fonts_WpFontFaceResolver_GetFontsFromThemeJson extends WP_Fonts_TestCase {
class Tests_Fonts_WPFontFaceResolver_GetFontsFromThemeJson extends WP_Fonts_TestCase {
const FONTS_THEME = 'fonts-block-theme';
const FONT_FAMILIES = array(
'fonts-block-theme' => array(
Expand Down
31 changes: 31 additions & 0 deletions phpunit/fonts/wpPrintFontFaces-test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* Test case for wp_print_font_faces().
*
* @package WordPress
* @subpackage Fonts
*/

/**
* This code is only needed if the Font API is enabled.
* It should be removed after Font Manager is merged into Gutenberg.
*/
if ( ! class_exists( 'WP_Font_Face' ) ) {
require_once __DIR__ . '/../../../lib/experimental/fonts/class-wp-font-face.php';
require_once __DIR__ . '/../../../lib/experimental/fonts/class-wp-font-face-resolver.php';
require_once __DIR__ . '/../../../lib/experimental/fonts/fonts.php';
}

/**
* Test wp_print_font_faces().
*
* @package WordPress
* @subpackage Fonts
*
* @since X.X.X
* @group fonts
* @covers wp_print_font_faces
*/
class Tests_Fonts_WPPrintFontFaces extends WP_UnitTestCase {

}

0 comments on commit b699043

Please sign in to comment.