Make WordPress Core

Changeset 53128


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

Tests: Improve code comments for block supports tests

Follow-up for [53085].

Props ramonopoly, antonvlasenko, peterwilsoncc.
See #55505.

Location:
trunk/tests/phpunit/tests/block-supports
Files:
6 edited

Legend:

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

    r53076 r53128  
    44 */
    55class Test_Block_Supports_Border extends WP_UnitTestCase {
    6 
    76        /**
    87         * @ticket 55505
     8         *
     9         * @covers ::wp_apply_border_support
    910         */
    1011        function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
     
    5758        /**
    5859         * @ticket 55505
     60         *
     61         * @covers ::wp_apply_border_support
    5962         */
    6063        function test_border_with_skipped_serialization_block_supports() {
     
    102105        /**
    103106         * @ticket 55505
     107         *
     108         * @covers ::wp_apply_border_support
    104109         */
    105110        function test_radius_with_individual_skipped_serialization_block_supports() {
  • trunk/tests/phpunit/tests/block-supports/colors.php

    r53076 r53128  
    44 */
    55class Tests_Block_Supports_Colors extends WP_UnitTestCase {
    6 
     6        /**
     7         * @ticket 54337
     8         *
     9         * @covers ::wp_apply_colors_support
     10         */
    711        function test_color_slugs_with_numbers_are_kebab_cased_properly() {
    812                register_block_type(
     
    4852        /**
    4953         * @ticket 55505
     54         *
     55         * @covers ::wp_apply_colors_support
    5056         */
    5157        function test_color_with_skipped_serialization_block_supports() {
     
    9096        /**
    9197         * @ticket 55505
     98         *
     99         * @covers ::wp_apply_colors_support
    92100         */
    93101        function test_gradient_with_individual_skipped_serialization_block_supports() {
  • trunk/tests/phpunit/tests/block-supports/elements.php

    r53012 r53128  
    1717        /**
    1818         * Test wp_render_elements_support() with a simple paragraph and link color preset.
     19         * @ticket 54337
     20         *
     21         * @covers ::wp_render_elements_support
    1922         */
    2023        public function test_simple_paragraph_link_color() {
     
    4649        /**
    4750         * Test wp_render_elements_support() with a paragraph containing a class.
     51         * @ticket 54337
     52         *
     53         * @covers ::wp_render_elements_support
    4854         */
    4955        public function test_class_paragraph_link_color() {
     
    7682        /**
    7783         * Test wp_render_elements_support() with a paragraph containing a anchor.
     84         * @ticket 54337
     85         *
     86         * @covers ::wp_render_elements_support
    7887         */
    7988        public function test_anchor_paragraph_link_color() {
  • trunk/tests/phpunit/tests/block-supports/layout.php

    r53085 r53128  
    5454        /**
    5555         * @ticket 55505
     56         *
     57         * @covers ::wp_restore_image_outer_container
    5658         */
    5759        function test_outer_container_not_restored_for_non_aligned_image_block_with_non_themejson_theme() {
     
    7072        /**
    7173         * @ticket 55505
     74         *
     75         * @covers ::wp_restore_image_outer_container
    7276         */
    7377        function test_outer_container_restored_for_aligned_image_block_with_non_themejson_theme() {
     
    8690        /**
    8791         * @ticket 55505
     92         *
     93         * @covers ::wp_restore_image_outer_container
    8894         *
    8995         * @dataProvider data_block_image_html_restored_outer_container
     
    144150        /**
    145151         * @ticket 55505
     152         *
     153         * @covers ::wp_restore_image_outer_container
    146154         */
    147155        function test_outer_container_not_restored_for_aligned_image_block_with_themejson_theme() {
  • trunk/tests/phpunit/tests/block-supports/spacing.php

    r53076 r53128  
    44 */
    55class Test_Block_Supports_Spacing extends WP_UnitTestCase {
    6 
    76        /**
    87         * @ticket 55505
     8         *
     9         * @covers ::wp_apply_spacing_support
    910         */
    1011        function test_spacing_style_is_applied() {
     
    5657        /**
    5758         * @ticket 55505
     59         *
     60         * @covers ::wp_apply_spacing_support
    5861         */
    5962        function test_spacing_with_skipped_serialization_block_supports() {
     
    104107        /**
    105108         * @ticket 55505
     109         *
     110         * @covers ::wp_apply_spacing_support
    106111         */
    107112        function test_margin_with_individual_skipped_serialization_block_supports() {
  • 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.