From d002d7b4ba6939c684187a4f829116b0f41392fe Mon Sep 17 00:00:00 2001 From: hellofromtonya Date: Thu, 1 Feb 2024 14:52:14 -0600 Subject: [PATCH] Add fonts and font-library group annotation. All of the test classes now have these groups: * @group fonts * @group font-library These annotations allow for specific groups of tests to be run, which is helping in local development. --- .../fonts/font-library/fontFamilyBackwardsCompatibility.php | 3 +++ .../tests/fonts/font-library/wpFontUtils/getFontFaceSlug.php | 5 ++++- .../fonts/font-library/wpRestFontCollectionsController.php | 2 ++ .../tests/fonts/font-library/wpRestFontFacesController.php | 2 ++ .../fonts/font-library/wpRestFontFamiliesController.php | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/phpunit/tests/fonts/font-library/fontFamilyBackwardsCompatibility.php b/phpunit/tests/fonts/font-library/fontFamilyBackwardsCompatibility.php index a51cf094046a52..4305237d53292f 100644 --- a/phpunit/tests/fonts/font-library/fontFamilyBackwardsCompatibility.php +++ b/phpunit/tests/fonts/font-library/fontFamilyBackwardsCompatibility.php @@ -6,6 +6,9 @@ * * @package WordPress * @subpackage Font Library + * + * @group fonts + * @group font-library */ class Tests_Font_Family_Backwards_Compatibility extends WP_UnitTestCase { private $post_ids_to_delete = array(); diff --git a/phpunit/tests/fonts/font-library/wpFontUtils/getFontFaceSlug.php b/phpunit/tests/fonts/font-library/wpFontUtils/getFontFaceSlug.php index 32575d4bb19a28..de0b02e63185ed 100644 --- a/phpunit/tests/fonts/font-library/wpFontUtils/getFontFaceSlug.php +++ b/phpunit/tests/fonts/font-library/wpFontUtils/getFontFaceSlug.php @@ -4,7 +4,10 @@ * * @package WordPress * @subpackage Font Library - * * + * + * @group fonts + * @group font-library + * * @covers WP_Font_Utils::get_font_face_slug */ class Tests_Fonts_WpFontUtils_GetFontFaceSlug extends WP_UnitTestCase { diff --git a/phpunit/tests/fonts/font-library/wpRestFontCollectionsController.php b/phpunit/tests/fonts/font-library/wpRestFontCollectionsController.php index d73315c311ad7f..e6143da6da6464 100644 --- a/phpunit/tests/fonts/font-library/wpRestFontCollectionsController.php +++ b/phpunit/tests/fonts/font-library/wpRestFontCollectionsController.php @@ -7,6 +7,8 @@ * @since 6.5.0 * * @group restapi + * @group fonts + * @group font-library * * @coversDefaultClass WP_REST_Font_Collections_Controller */ diff --git a/phpunit/tests/fonts/font-library/wpRestFontFacesController.php b/phpunit/tests/fonts/font-library/wpRestFontFacesController.php index 277eb4dea761f6..de6ecc3d735146 100644 --- a/phpunit/tests/fonts/font-library/wpRestFontFacesController.php +++ b/phpunit/tests/fonts/font-library/wpRestFontFacesController.php @@ -7,6 +7,8 @@ * @since 6.5.0 * * @group restapi + * @group fonts + * @group font-library * * @coversDefaultClass WP_REST_Font_Faces_Controller */ diff --git a/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php b/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php index 8deac60ee985ca..9d44f7e0c65fe7 100644 --- a/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php +++ b/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php @@ -7,6 +7,8 @@ * @since 6.5.0 * * @group restapi + * @group fonts + * @group font-library * * @coversDefaultClass WP_REST_Font_Families_Controller */