Make WordPress Core


Ignore:
Timestamp:
04/11/2022 10:12:56 AM (5 years ago)
Author:
gziolo
Message:

Tests: Improve code comments for block supports tests

Follow-up for [53085].

Props ramonopoly, antonvlasenko, peterwilsoncc.
See #55505.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/typography.php

    r53076 r53128  
    44 */
    55class Tests_Block_Supports_Typography extends WP_UnitTestCase {
    6 
     6        /**
     7         * @ticket 54337
     8         *
     9         * @covers ::wp_apply_typography_support
     10         */
    711        function test_font_size_slug_with_numbers_is_kebab_cased_properly() {
    812                register_block_type(
    … …  
    3337                unregister_block_type( 'test/font-size-slug-with-numbers' );
    3438        }
    35 
     39        /**
     40         * @ticket 54337
     41         *
     42         * @covers ::wp_apply_typography_support
     43         */
    3644        function test_font_family_with_legacy_inline_styles_using_a_value() {
    3745                $block_name = 'test/font-family-with-inline-styles-using-value';
    … …  
    6573        /**
    6674         * @ticket 55505
     75         *
     76         * @covers ::wp_apply_typography_support
    6777         */
    6878        function test_typography_with_skipped_serialization_block_supports() {
    … …  
    110120        /**
    111121         * @ticket 55505
     122         *
     123         * @covers ::wp_apply_typography_support
    112124         */
    113125        function test_letter_spacing_with_individual_skipped_serialization_block_supports() {
    … …  
    142154                unregister_block_type( $block_name );
    143155        }
    144 
     156        /**
     157         * @ticket 54337
     158         *
     159         * @covers ::wp_apply_typography_support
     160         */
    145161        function test_font_family_with_legacy_inline_styles_using_a_css_var() {
    146162                $block_name = 'test/font-family-with-inline-styles-using-css-var';
    … …  
    171187                unregister_block_type( $block_name );
    172188        }
    173 
     189        /**
     190         * @ticket 54337
     191         *
     192         * @covers ::wp_apply_typography_support
     193         */
    174194        function test_font_family_with_class() {
    175195                $block_name = 'test/font-family-with-class';
Note: See TracChangeset for help on using the changeset viewer.