Make WordPress Core

Changeset 53680


Ignore:
Timestamp:
07/07/2022 09:06:03 PM (23 months ago)
Author:
azaozz
Message:

Build/Test Tools: Add and fix @covers tags to the attachments and block-supports test groups.

Props pbeane, hellofromTonya, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

Location:
trunk/tests/phpunit/tests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/attachment/slashes.php

    r53557 r53680  
    55 * @group slashes
    66 * @ticket 21767
     7 *
     8 * @covers ::wp_insert_attachment
    79 */
    810class Tests_Attachment_Slashes extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/block-supports/border.php

    r53153 r53680  
    22/**
    33 * @group block-supports
     4 *
     5 * @covers ::wp_apply_border_support
    46 */
    57class Test_Block_Supports_Border extends WP_UnitTestCase {
     
    2224    /**
    2325     * @ticket 55505
    24      *
    25      * @covers ::wp_apply_border_support
    2626     */
    2727    function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
     
    7373    /**
    7474     * @ticket 55505
    75      *
    76      * @covers ::wp_apply_border_support
    7775     */
    7876    function test_border_with_skipped_serialization_block_supports() {
     
    119117    /**
    120118     * @ticket 55505
    121      *
    122      * @covers ::wp_apply_border_support
    123119     */
    124120    function test_radius_with_individual_skipped_serialization_block_supports() {
  • trunk/tests/phpunit/tests/block-supports/colors.php

    r53153 r53680  
    22/**
    33 * @group block-supports
     4 *
     5 * @covers ::wp_apply_colors_support
    46 */
    57class Tests_Block_Supports_Colors extends WP_UnitTestCase {
     
    2224    /**
    2325     * @ticket 54337
    24      *
    25      * @covers ::wp_apply_colors_support
    2626     */
    2727    function test_color_slugs_with_numbers_are_kebab_cased_properly() {
     
    6868    /**
    6969     * @ticket 55505
    70      *
    71      * @covers ::wp_apply_colors_support
    7270     */
    7371    function test_color_with_skipped_serialization_block_supports() {
     
    111109    /**
    112110     * @ticket 55505
    113      *
    114      * @covers ::wp_apply_colors_support
    115111     */
    116112    function test_gradient_with_individual_skipped_serialization_block_supports() {
  • trunk/tests/phpunit/tests/block-supports/elements.php

    r53260 r53680  
    22/**
    33 * @group block-supports
     4 *
     5 * @covers ::wp_render_elements_support
    46 */
    57class Tests_Block_Supports_Elements extends WP_UnitTestCase {
     
    1820     * Test wp_render_elements_support() with a simple paragraph and link color preset.
    1921     * @ticket 54337
    20      *
    21      * @covers ::wp_render_elements_support
    2222     */
    2323    public function test_simple_paragraph_link_color() {
     
    5050     * Test wp_render_elements_support() with a paragraph containing a class.
    5151     * @ticket 54337
    52      *
    53      * @covers ::wp_render_elements_support
    5452     */
    5553    public function test_class_paragraph_link_color() {
     
    8381     * Test wp_render_elements_support() with a paragraph containing a anchor.
    8482     * @ticket 54337
    85      *
    86      * @covers ::wp_render_elements_support
    8783     */
    8884    public function test_anchor_paragraph_link_color() {
  • trunk/tests/phpunit/tests/block-supports/layout.php

    r53128 r53680  
    1414 *
    1515 * @group block-supports
     16 *
     17 * @covers ::wp_restore_image_outer_container
    1618 */
    1719class Test_Block_Supports_Layout extends WP_UnitTestCase {
     
    5456    /**
    5557     * @ticket 55505
    56      *
    57      * @covers ::wp_restore_image_outer_container
    5858     */
    5959    function test_outer_container_not_restored_for_non_aligned_image_block_with_non_themejson_theme() {
     
    7272    /**
    7373     * @ticket 55505
    74      *
    75      * @covers ::wp_restore_image_outer_container
    7674     */
    7775    function test_outer_container_restored_for_aligned_image_block_with_non_themejson_theme() {
     
    9088    /**
    9189     * @ticket 55505
    92      *
    93      * @covers ::wp_restore_image_outer_container
    9490     *
    9591     * @dataProvider data_block_image_html_restored_outer_container
     
    150146    /**
    151147     * @ticket 55505
    152      *
    153      * @covers ::wp_restore_image_outer_container
    154148     */
    155149    function test_outer_container_not_restored_for_aligned_image_block_with_themejson_theme() {
  • trunk/tests/phpunit/tests/block-supports/spacing.php

    r53153 r53680  
    22/**
    33 * @group block-supports
     4 *
     5 * @covers ::wp_apply_spacing_support
    46 */
    57class Test_Block_Supports_Spacing extends WP_UnitTestCase {
     
    2224    /**
    2325     * @ticket 55505
    24      *
    25      * @covers ::wp_apply_spacing_support
    2626     */
    2727    function test_spacing_style_is_applied() {
     
    7272    /**
    7373     * @ticket 55505
    74      *
    75      * @covers ::wp_apply_spacing_support
    7674     */
    7775    function test_spacing_with_skipped_serialization_block_supports() {
     
    121119    /**
    122120     * @ticket 55505
    123      *
    124      * @covers ::wp_apply_spacing_support
    125121     */
    126122    function test_margin_with_individual_skipped_serialization_block_supports() {
  • trunk/tests/phpunit/tests/block-supports/typography.php

    r53153 r53680  
    22/**
    33 * @group block-supports
     4 *
     5 * @covers ::wp_apply_typography_support
    46 */
    57class Tests_Block_Supports_Typography extends WP_UnitTestCase {
     
    2224    /**
    2325     * @ticket 54337
    24      *
    25      * @covers ::wp_apply_typography_support
    2626     */
    2727    function test_font_size_slug_with_numbers_is_kebab_cased_properly() {
     
    5555    /**
    5656     * @ticket 54337
    57      *
    58      * @covers ::wp_apply_typography_support
    5957     */
    6058    function test_font_family_with_legacy_inline_styles_using_a_value() {
     
    8886    /**
    8987     * @ticket 55505
    90      *
    91      * @covers ::wp_apply_typography_support
    9288     */
    9389    function test_typography_with_skipped_serialization_block_supports() {
     
    134130    /**
    135131     * @ticket 55505
    136      *
    137      * @covers ::wp_apply_typography_support
    138132     */
    139133    function test_letter_spacing_with_individual_skipped_serialization_block_supports() {
     
    169163    /**
    170164     * @ticket 54337
    171      *
    172      * @covers ::wp_apply_typography_support
    173165     */
    174166    function test_font_family_with_legacy_inline_styles_using_a_css_var() {
     
    201193    /**
    202194     * @ticket 54337
    203      *
    204      * @covers ::wp_apply_typography_support
    205195     */
    206196    function test_font_family_with_class() {
Note: See TracChangeset for help on using the changeset viewer.