Make WordPress Core

Changeset 48858


Ignore:
Timestamp:
08/25/2020 12:57:17 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Clean up some existing @covers tags.

The () at the end is unnecessary and disregarded by PHPUnit, so can be removed.

Props jrf.
See #39265.

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

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesTemplate.php

    r47777 r48858  
    132132     *
    133133     * @ticket 42498
    134      * @covers ::get_settings_errors()
     134     * @covers ::get_settings_errors
    135135     * @global array $wp_settings_errors
    136136     */
     
    172172    /**
    173173     * @ticket 44941
    174      * @covers ::settings_errors()
     174     * @covers ::settings_errors
    175175     * @global array $wp_settings_errors
    176176     * @dataProvider settings_errors_css_classes_provider
  • trunk/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php

    r48100 r48858  
    6262
    6363     * @dataProvider data_test_columns_should_be_sortable
    64      * @covers WP_Privacy_Requests_Table::prepare_items()
     64     * @covers WP_Privacy_Requests_Table::prepare_items
    6565     * @ticket 43960
    6666     */
  • trunk/tests/phpunit/tests/ajax/CustomizeManager.php

    r48438 r48858  
    104104     *
    105105     * @ticket 30937
    106      * @covers WP_Customize_Manager::save()
     106     * @covers WP_Customize_Manager::save
    107107     */
    108108    function test_save_failures() {
     
    271271     *
    272272     * @ticket 30937
    273      * @covers WP_Customize_Manager::save()
     273     * @covers WP_Customize_Manager::save
    274274     */
    275275    function test_save_success_publish_create() {
     
    300300     *
    301301     * @ticket 30937
    302      * @covers WP_Customize_Manager::save()
     302     * @covers WP_Customize_Manager::save
    303303     */
    304304    function test_save_success_publish_edit() {
     
    339339     *
    340340     * @ticket 38943
    341      * @covers WP_Customize_Manager::save()
     341     * @covers WP_Customize_Manager::save
    342342     */
    343343    function test_success_save_post_date() {
     
    437437     *
    438438     * @ticket 39896
    439      * @covers WP_Customize_Manager::save()
     439     * @covers WP_Customize_Manager::save
    440440     */
    441441    public function test_save_autosave() {
     
    483483     *
    484484     * @ticket 39896
    485      * @covers WP_Customize_Manager::handle_changeset_trash_request()
     485     * @covers WP_Customize_Manager::handle_changeset_trash_request
    486486     */
    487487    public function test_handle_changeset_trash_request() {
     
    571571     *
    572572     * @ticket 39896
    573      * @covers WP_Customize_Manager::handle_dismiss_autosave_or_lock_request()
    574      * @covers WP_Customize_Manager::dismiss_user_auto_draft_changesets()
     573     * @covers WP_Customize_Manager::handle_dismiss_autosave_or_lock_request
     574     * @covers WP_Customize_Manager::dismiss_user_auto_draft_changesets
    575575     */
    576576    public function test_handle_dismiss_autosave_or_lock_request() {
  • trunk/tests/phpunit/tests/ajax/CustomizeMenus.php

    r47122 r48858  
    609609     * Testing successful ajax_insert_auto_draft_post() call.
    610610     *
    611      * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post()
     611     * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post
    612612     */
    613613    function test_ajax_insert_auto_draft_post_success() {
     
    639639     * Testing unsuccessful ajax_insert_auto_draft_post() call.
    640640     *
    641      * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post()
     641     * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post
    642642     */
    643643    function test_ajax_insert_auto_draft_failures() {
  • trunk/tests/phpunit/tests/customize/custom-css-setting.php

    r46586 r48858  
    7676     * Also checks for the post type and the Setting Type.
    7777     *
    78      * @covers WP_Customize_Custom_CSS_Setting::__construct()
     78     * @covers WP_Customize_Custom_CSS_Setting::__construct
    7979     */
    8080    function test_construct() {
     
    107107     *
    108108     * @covers ::wp_get_custom_css
    109      * @covers WP_Customize_Custom_CSS_Setting::value()
    110      * @covers WP_Customize_Custom_CSS_Setting::preview()
    111      * @covers WP_Customize_Custom_CSS_Setting::update()
     109     * @covers WP_Customize_Custom_CSS_Setting::value
     110     * @covers WP_Customize_Custom_CSS_Setting::preview
     111     * @covers WP_Customize_Custom_CSS_Setting::update
    112112     */
    113113    function test_crud() {
     
    267267     * Test crud methods on WP_Customize_Custom_CSS_Setting.
    268268     *
    269      * @covers WP_Customize_Custom_CSS_Setting::value()
     269     * @covers WP_Customize_Custom_CSS_Setting::value
    270270     */
    271271    function test_value_filter() {
     
    307307     * Test update filter on WP_Customize_Custom_CSS_Setting.
    308308     *
    309      * @covers WP_Customize_Custom_CSS_Setting::update()
     309     * @covers WP_Customize_Custom_CSS_Setting::update
    310310     */
    311311    function test_update_filter() {
     
    365365     * as it picks up the Errors and passes them to the next assertion.
    366366     *
    367      * @covers WP_Customize_Custom_CSS_Setting::validate()
     367     * @covers WP_Customize_Custom_CSS_Setting::validate
    368368     */
    369369    function test_validate() {
  • trunk/tests/phpunit/tests/customize/manager.php

    r48464 r48858  
    107107     * Test WP_Customize_Manager::__construct().
    108108     *
    109      * @covers WP_Customize_Manager::__construct()
     109     * @covers WP_Customize_Manager::__construct
    110110     */
    111111    function test_constructor() {
     
    152152     *
    153153     * @ticket 39896
    154      * @covers WP_Customize_Manager::establish_loaded_changeset()
    155      * @covers WP_Customize_Manager::__construct()
     154     * @covers WP_Customize_Manager::establish_loaded_changeset
     155     * @covers WP_Customize_Manager::__construct
    156156     */
    157157    public function test_constructor_deferred_changeset_uuid() {
     
    226226     * Test WP_Customize_Manager::setup_theme() for admin screen.
    227227     *
    228      * @covers WP_Customize_Manager::setup_theme()
     228     * @covers WP_Customize_Manager::setup_theme
    229229     */
    230230    function test_setup_theme_in_customize_admin() {
     
    295295     * Test WP_Customize_Manager::setup_theme() for frontend.
    296296     *
    297      * @covers WP_Customize_Manager::setup_theme()
     297     * @covers WP_Customize_Manager::setup_theme
    298298     */
    299299    function test_setup_theme_in_frontend() {
     
    330330     *
    331331     * @ticket 39221
    332      * @covers WP_Customize_Manager::settings_previewed()
     332     * @covers WP_Customize_Manager::settings_previewed
    333333     */
    334334    function test_settings_previewed() {
     
    344344     *
    345345     * @ticket 39896
    346      * @covers WP_Customize_Manager::autosaved()
     346     * @covers WP_Customize_Manager::autosaved
    347347     */
    348348    public function test_autosaved() {
     
    361361     *
    362362     * @ticket 39896
    363      * @covers WP_Customize_Manager::branching()
     363     * @covers WP_Customize_Manager::branching
    364364     */
    365365    public function test_branching() {
     
    383383     *
    384384     * @ticket 30937
    385      * @covers WP_Customize_Manager::changeset_uuid()
     385     * @covers WP_Customize_Manager::changeset_uuid
    386386     */
    387387    function test_changeset_uuid() {
     
    397397     *
    398398     * @ticket 30937
    399      * @covers WP_Customize_Manager::wp_loaded()
     399     * @covers WP_Customize_Manager::wp_loaded
    400400     */
    401401    function test_wp_loaded() {
     
    415415     *
    416416     * @ticket 30937
    417      * @covers WP_Customize_Manager::find_changeset_post_id()
     417     * @covers WP_Customize_Manager::find_changeset_post_id
    418418     */
    419419    function test_find_changeset_post_id() {
     
    440440     *
    441441     * @ticket 30937
    442      * @covers WP_Customize_Manager::changeset_post_id()
     442     * @covers WP_Customize_Manager::changeset_post_id
    443443     */
    444444    function test_changeset_post_id() {
     
    464464     *
    465465     * @ticket 30937
    466      * @covers WP_Customize_Manager::changeset_data()
     466     * @covers WP_Customize_Manager::changeset_data
    467467     */
    468468    function test_changeset_data() {
     
    540540     * Test WP_Customize_Manager::import_theme_starter_content().
    541541     *
    542      * @covers WP_Customize_Manager::import_theme_starter_content()
    543      * @covers WP_Customize_Manager::_save_starter_content_changeset()
     542     * @covers WP_Customize_Manager::import_theme_starter_content
     543     * @covers WP_Customize_Manager::_save_starter_content_changeset
    544544     */
    545545    function test_import_theme_starter_content() {
     
    809809     *
    810810     * @ticket 45484
    811      * @covers WP_Customize_Manager::import_theme_starter_content()
     811     * @covers WP_Customize_Manager::import_theme_starter_content
    812812     */
    813813    function test_import_theme_starter_content_with_nested_arrays() {
     
    883883     *
    884884     * @ticket 30937
    885      * @covers WP_Customize_Manager::customize_preview_init()
     885     * @covers WP_Customize_Manager::customize_preview_init
    886886     */
    887887    function test_customize_preview_init() {
     
    928928     * @ticket 30937
    929929     * @ticket 40020
    930      * @covers WP_Customize_Manager::filter_iframe_security_headers()
     930     * @covers WP_Customize_Manager::filter_iframe_security_headers
    931931     */
    932932    function test_filter_iframe_security_headers() {
     
    943943     *
    944944     * @ticket 30937
    945      * @covers WP_Customize_Manager::add_state_query_params()
     945     * @covers WP_Customize_Manager::add_state_query_params
    946946     */
    947947    function test_add_state_query_params() {
     
    10021002     *
    10031003     * @ticket 30937
    1004      * @covers WP_Customize_Manager::save_changeset_post()
     1004     * @covers WP_Customize_Manager::save_changeset_post
    10051005     */
    10061006    function test_save_changeset_post_without_theme_activation() {
     
    12441244     * Test saving changeset post without Kses or other content_save_pre filters mutating content.
    12451245     *
    1246      * @covers WP_Customize_Manager::save_changeset_post()
     1246     * @covers WP_Customize_Manager::save_changeset_post
    12471247     */
    12481248    public function test_save_changeset_post_without_kses_corrupting_json() {
     
    14471447     *
    14481448     * @ticket 30937
    1449      * @covers WP_Customize_Manager::save_changeset_post()
    1450      * @covers WP_Customize_Manager::update_stashed_theme_mod_settings()
     1449     * @covers WP_Customize_Manager::save_changeset_post
     1450     * @covers WP_Customize_Manager::update_stashed_theme_mod_settings
    14511451     */
    14521452    function test_save_changeset_post_with_theme_activation() {
     
    14861486     *
    14871487     * @ticket 38705
    1488      * @covers WP_Customize_Manager::save_changeset_post()
     1488     * @covers WP_Customize_Manager::save_changeset_post
    14891489     */
    14901490    function test_save_changeset_post_with_varying_users() {
     
    16611661     * @ticket 31089
    16621662     * @see wp_delete_auto_drafts()
    1663      * @covers WP_Customize_Manager::save_changeset_post()
     1663     * @covers WP_Customize_Manager::save_changeset_post
    16641664     */
    16651665    function test_save_changeset_post_dumping_auto_draft_date() {
     
    17011701     *
    17021702     * @ticket 38865
    1703      * @covers WP_Customize_Manager::save_changeset_post()
     1703     * @covers WP_Customize_Manager::save_changeset_post
    17041704     */
    17051705    function test_save_changeset_post_with_unchanged_values() {
     
    17911791     *
    17921792     * @ticket 39896
    1793      * @covers WP_Customize_Manager::save_changeset_post()
    1794      * @covers WP_Customize_Manager::grant_edit_post_capability_for_changeset()
     1793     * @covers WP_Customize_Manager::save_changeset_post
     1794     * @covers WP_Customize_Manager::grant_edit_post_capability_for_changeset
    17951795     */
    17961796    public function test_save_changeset_post_with_autosave() {
     
    19011901     *
    19021902     * @ticket 41621
    1903      * @covers WP_Customize_Manager::save_changeset_post()
     1903     * @covers WP_Customize_Manager::save_changeset_post
    19041904     */
    19051905    function test_remove_setting_from_changeset_post() {
     
    19371937     *
    19381938     * @ticket 38705
    1939      * @covers WP_Customize_Manager::save_changeset_post()
     1939     * @covers WP_Customize_Manager::save_changeset_post
    19401940     */
    19411941    function test_save_changeset_post_with_varying_unfiltered_html_cap() {
     
    20072007     *
    20082008     * @ticket 39221
    2009      * @covers ::_wp_customize_publish_changeset()
     2009     * @covers ::_wp_customize_publish_changeset
    20102010     * @see WP_Customize_Widgets::schedule_customize_register()
    20112011     * @see WP_Customize_Widgets::customize_register()
     
    21932193     *
    21942194     * @ticket 30937
    2195      * @covers WP_Customize_Manager::is_cross_domain()
     2195     * @covers WP_Customize_Manager::is_cross_domain
    21962196     */
    21972197    function test_is_cross_domain() {
     
    22112211     *
    22122212     * @ticket 30937
    2213      * @covers WP_Customize_Manager::get_allowed_urls()
     2213     * @covers WP_Customize_Manager::get_allowed_urls
    22142214     */
    22152215    function test_get_allowed_urls() {
     
    22942294     *
    22952295     * @ticket 30937
    2296      * @covers WP_Customize_Manager::unsanitized_post_values()
     2296     * @covers WP_Customize_Manager::unsanitized_post_values
    22972297     */
    22982298    function test_unsanitized_post_values_with_changeset_and_stashed_theme_mods() {
     
    26082608     *
    26092609     * @ticket 37638
    2610      * @covers WP_Customize_Manager::validate_setting_values()
     2610     * @covers WP_Customize_Manager::validate_setting_values
    26112611     */
    26122612    function test_late_validate_setting_values() {
     
    26342634     *
    26352635     * @ticket 30937
    2636      * @covers WP_Customize_Manager::validate_setting_values()
     2636     * @covers WP_Customize_Manager::validate_setting_values
    26372637     */
    26382638    function test_validate_setting_values_args() {
     
    28152815     *
    28162816     * @ticket 38013
    2817      * @covers WP_Customize_Manager::has_published_pages()
     2817     * @covers WP_Customize_Manager::has_published_pages
    28182818     */
    28192819    function test_has_published_pages() {
     
    28442844     *
    28452845     * @ticket 38013
    2846      * @covers WP_Customize_Manager::has_published_pages()
     2846     * @covers WP_Customize_Manager::has_published_pages
    28472847     */
    28482848    function test_has_published_pages_when_nav_menus_created_posts() {
     
    31163116     *
    31173117     * @ticket 38867
    3118      * @covers WP_Customize_Manager::remove_frameless_preview_messenger_channel()
     3118     * @covers WP_Customize_Manager::remove_frameless_preview_messenger_channel
    31193119     */
    31203120    function test_remove_frameless_preview_messenger_channel() {
  • trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php

    r46586 r48858  
    945945     *
    946946     * @ticket 38945
    947      * @covers WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()
     947     * @covers WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item
    948948     */
    949949    function test_value_as_wp_post_nav_menu_item_term_urls() {
     
    10181018     *
    10191019     * @ticket 38945
    1020      * @covers WP_Customize_Nav_Menu_Item_Setting::get_original_title()
     1020     * @covers WP_Customize_Nav_Menu_Item_Setting::get_original_title
    10211021     */
    10221022    function test_get_original_title() {
  • trunk/tests/phpunit/tests/customize/nav-menus.php

    r47747 r48858  
    662662     * Test insert_auto_draft_post method.
    663663     *
    664      * @covers WP_Customize_Nav_Menus::insert_auto_draft_post()
     664     * @covers WP_Customize_Nav_Menus::insert_auto_draft_post
    665665     */
    666666    public function test_insert_auto_draft_post() {
     
    836836     * Test make_auto_draft_status_previewable.
    837837     *
    838      * @covers WP_Customize_Nav_Menus::make_auto_draft_status_previewable()
     838     * @covers WP_Customize_Nav_Menus::make_auto_draft_status_previewable
    839839     */
    840840    function test_make_auto_draft_status_previewable() {
     
    848848     * Test sanitize_nav_menus_created_posts.
    849849     *
    850      * @covers WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts()
     850     * @covers WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts
    851851     */
    852852    function test_sanitize_nav_menus_created_posts() {
     
    922922     * Test save_nav_menus_created_posts.
    923923     *
    924      * @covers WP_Customize_Nav_Menus::save_nav_menus_created_posts()
     924     * @covers WP_Customize_Nav_Menus::save_nav_menus_created_posts
    925925     */
    926926    function test_save_nav_menus_created_posts() {
     
    11151115     * Test the filter_wp_nav_menu method.
    11161116     *
    1117      * @covers WP_Customize_Nav_Menus::filter_wp_nav_menu()
    1118      * @covers WP_Customize_Nav_Menus::filter_wp_nav_menu_args()
     1117     * @covers WP_Customize_Nav_Menus::filter_wp_nav_menu
     1118     * @covers WP_Customize_Nav_Menus::filter_wp_nav_menu_args
    11191119     */
    11201120    function test_filter_wp_nav_menu() {
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r48466 r48858  
    10461046     *
    10471047     * @ticket 41871
    1048      * @covers ::wp_enqueue_code_editor()
     1048     * @covers ::wp_enqueue_code_editor
    10491049     */
    10501050    public function test_wp_enqueue_code_editor_when_php_file_will_be_passed() {
     
    11331133     *
    11341134     * @ticket 41871
    1135      * @covers ::wp_enqueue_code_editor()
     1135     * @covers ::wp_enqueue_code_editor
    11361136     */
    11371137    public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() {
     
    12161216     *
    12171217     * @ticket 41871
    1218      * @covers ::wp_enqueue_code_editor()
     1218     * @covers ::wp_enqueue_code_editor
    12191219     */
    12201220    public function test_wp_enqueue_code_editor_when_generated_array_by_array_merge_will_be_passed() {
     
    13131313     *
    13141314     * @ticket 41871
    1315      * @covers ::wp_enqueue_code_editor()
     1315     * @covers ::wp_enqueue_code_editor
    13161316     */
    13171317    public function test_wp_enqueue_code_editor_when_simple_array_will_be_passed() {
  • trunk/tests/phpunit/tests/general/wpError.php

    r46586 r48858  
    101101
    102102    /**
    103      * @covers ::get_error_codes()
     103     * @covers ::get_error_codes
    104104     */
    105105    public function test_get_error_codes_with_no_errors_should_return_empty_array() {
     
    108108
    109109    /**
    110      * @covers ::get_error_codes()
     110     * @covers ::get_error_codes
    111111     */
    112112    public function test_get_error_codes_with_one_error_should_return_an_array_with_only_that_code() {
     
    117117
    118118    /**
    119      * @covers ::get_error_codes()
     119     * @covers ::get_error_codes
    120120     */
    121121    public function test_get_error_codes_with_multiple_errors_should_return_an_array_of_those_codes() {
     
    129129
    130130    /**
    131      * @covers ::get_error_code()
     131     * @covers ::get_error_code
    132132     */
    133133    public function test_get_error_code_with_no_errors_should_return_an_empty_string() {
     
    136136
    137137    /**
    138      * @covers ::get_error_code()
     138     * @covers ::get_error_code
    139139     */
    140140    public function test_get_error_code_with_one_error_should_return_that_error_code() {
     
    145145
    146146    /**
    147      * @covers ::get_error_code()
     147     * @covers ::get_error_code
    148148     */
    149149    public function test_get_error_code_with_multiple_errors_should_return_only_the_first_error_code() {
     
    155155
    156156    /**
    157      * @covers ::get_error_messages()
     157     * @covers ::get_error_messages
    158158     */
    159159    public function test_get_error_messages_with_empty_code_and_no_errors_should_return_an_empty_array() {
     
    162162
    163163    /**
    164      * @covers ::get_error_messages()
     164     * @covers ::get_error_messages
    165165     */
    166166    public function test_get_error_messages_with_empty_code_one_error_should_return_an_array_with_that_message() {
     
    171171
    172172    /**
    173      * @covers ::get_error_messages()
     173     * @covers ::get_error_messages
    174174     */
    175175    public function test_get_error_messages_with_empty_code_multiple_errors_should_return_an_array_of_messages() {
     
    181181
    182182    /**
    183      * @covers ::get_error_messages()
     183     * @covers ::get_error_messages
    184184     */
    185185    public function test_get_error_messages_with_an_invalid_code_should_return_an_empty_array() {
     
    188188
    189189    /**
    190      * @covers ::get_error_messages()
     190     * @covers ::get_error_messages
    191191     */
    192192    public function test_get_error_messages_with_one_error_should_return_an_array_with_that_message() {
     
    197197
    198198    /**
    199      * @covers ::get_error_messages()
     199     * @covers ::get_error_messages
    200200     */
    201201    public function test_get_error_messages_with_multiple_errors_same_code_should_return_an_array_with_all_messages() {
     
    207207
    208208    /**
    209      * @covers ::get_error_message()
     209     * @covers ::get_error_message
    210210     */
    211211    public function test_get_error_message_with_empty_code_and_no_errors_should_return_an_empty_string() {
     
    214214
    215215    /**
    216      * @covers ::get_error_message()
     216     * @covers ::get_error_message
    217217     */
    218218    public function test_get_error_message_with_empty_code_and_one_error_should_return_that_message() {
     
    223223
    224224    /**
    225      * @covers ::get_error_message()
     225     * @covers ::get_error_message
    226226     */
    227227    public function test_get_error_message_with_empty_code_and_multiple_errors_should_return_the_first_message() {
     
    233233
    234234    /**
    235      * @covers ::get_error_message()
     235     * @covers ::get_error_message
    236236     */
    237237    public function test_get_error_message_with_empty_code_and_multiple_errors_multiple_codes_should_return_the_first_message() {
     
    244244
    245245    /**
    246      * @covers ::get_error_message()
     246     * @covers ::get_error_message
    247247     */
    248248    public function test_get_error_message_with_invalid_code_and_no_errors_should_return_empty_string() {
     
    251251
    252252    /**
    253      * @covers ::get_error_message()
     253     * @covers ::get_error_message
    254254     */
    255255    public function test_get_error_message_with_invalid_code_and_one_error_should_return_an_empty_string() {
     
    260260
    261261    /**
    262      * @covers ::get_error_message()
     262     * @covers ::get_error_message
    263263     */
    264264    public function test_get_error_message_with_invalid_code_and_multiple_errors_should_return_an_empty_string() {
     
    270270
    271271    /**
    272      * @covers ::get_error_data()
     272     * @covers ::get_error_data
    273273     */
    274274    public function test_get_error_data_with_empty_code_and_no_errors_should_evaluate_as_null() {
     
    277277
    278278    /**
    279      * @covers ::get_error_data()
     279     * @covers ::get_error_data
    280280     */
    281281    public function test_get_error_data_with_empty_code_one_error_no_data_should_evaluate_as_null() {
     
    286286
    287287    /**
    288      * @covers ::get_error_data()
     288     * @covers ::get_error_data
    289289     */
    290290    public function test_get_error_data_with_empty_code_multiple_errors_no_data_should_evaluate_as_null() {
     
    296296
    297297    /**
    298      * @covers ::get_error_data()
     298     * @covers ::get_error_data
    299299     */
    300300    public function test_get_error_data_with_empty_code_and_one_error_with_data_should_return_that_data() {
     
    306306
    307307    /**
    308      * @covers ::get_error_data()
     308     * @covers ::get_error_data
    309309     */
    310310    public function test_get_error_data_with_empty_code_and_multiple_errors_different_codes_should_return_the_last_data_of_the_first_code() {
     
    317317
    318318    /**
    319      * @covers ::get_error_data()
     319     * @covers ::get_error_data
    320320     */
    321321    public function test_get_error_data_with_empty_code_and_multiple_errors_same_code_should_return_the_last_data_of_the_first_code() {
     
    328328
    329329    /**
    330      * @covers ::get_error_data()
     330     * @covers ::get_error_data
    331331     */
    332332    public function test_get_error_data_with_code_and_no_errors_should_evaluate_as_null() {
     
    335335
    336336    /**
    337      * @covers ::get_error_data()
     337     * @covers ::get_error_data
    338338     */
    339339    public function test_get_error_data_with_code_and_one_error_with_no_data_should_evaluate_as_null() {
     
    344344
    345345    /**
    346      * @covers ::get_error_data()
     346     * @covers ::get_error_data
    347347     */
    348348    public function test_get_error_data_with_code_and_one_error_with_data_should_return_that_data() {
     
    354354
    355355    /**
    356      * @covers ::get_error_data()
     356     * @covers ::get_error_data
    357357     */
    358358    public function test_get_error_data_with_code_and_multiple_errors_different_codes_should_return_the_last_stored_data_of_the_code() {
     
    366366
    367367    /**
    368      * @covers ::get_error_data()
     368     * @covers ::get_error_data
    369369     */
    370370    public function test_get_error_data_with_code_and_multiple_errors_same_code_should_return_the_last_stored_data() {
     
    377377
    378378    /**
    379      * @covers ::has_errors()
     379     * @covers ::has_errors
    380380     */
    381381    public function test_has_errors_with_no_errors_returns_false() {
     
    384384
    385385    /**
    386      * @covers ::has_errors()
     386     * @covers ::has_errors
    387387     */
    388388    public function test_has_errors_with_errors_returns_true() {
     
    392392
    393393    /**
    394      * @covers ::add()
     394     * @covers ::add
    395395     */
    396396    public function test_add_with_empty_code_empty_message_empty_data_should_add_empty_key_to_errors_array() {
     
    401401
    402402    /**
    403      * @covers ::add()
     403     * @covers ::add
    404404     */
    405405    public function test_add_with_empty_code_empty_message_empty_data_should_add_empty_message_to_errors_array_under_empty_key() {
     
    410410
    411411    /**
    412      * @covers ::add()
     412     * @covers ::add
    413413     */
    414414    public function test_add_with_empty_code_empty_message_empty_data_should_not_alter_data() {
     
    419419
    420420    /**
    421      * @covers ::add()
     421     * @covers ::add
    422422     */
    423423    public function test_add_with_empty_code_empty_message_non_empty_data_should_store_data_under_an_empty_code_key() {
     
    428428
    429429    /**
    430      * @covers ::add()
     430     * @covers ::add
    431431     */
    432432    public function test_add_with_code_empty_message_empty_data_should_add_error_with_code() {
     
    437437
    438438    /**
    439      * @covers ::add()
     439     * @covers ::add
    440440     */
    441441    public function test_add_with_code_empty_message_empty_data_should_add_error_with_empty_message() {
     
    446446
    447447    /**
    448      * @covers ::add()
     448     * @covers ::add
    449449     */
    450450    public function test_add_with_code_empty_message_empty_data_should_not_add_error_data() {
     
    455455
    456456    /**
    457      * @covers ::add()
     457     * @covers ::add
    458458     */
    459459    public function test_add_with_code_and_message_and_empty_data_should_should_add_error_with_that_message() {
     
    464464
    465465    /**
    466      * @covers ::add()
     466     * @covers ::add
    467467     */
    468468    public function test_add_with_code_and_message_and_empty_data_should_not_alter_stored_data() {
     
    473473
    474474    /**
    475      * @covers ::add()
     475     * @covers ::add
    476476     */
    477477    public function test_add_with_code_and_empty_message_and_data_should_add_error_with_that_code() {
     
    482482
    483483    /**
    484      * @covers ::add()
     484     * @covers ::add
    485485     */
    486486    public function test_add_with_code_and_empty_message_and_data_should_store_that_data() {
     
    491491
    492492    /**
    493      * @covers ::add()
     493     * @covers ::add
    494494     */
    495495    public function test_add_with_code_and_message_and_data_should_add_an_error_with_that_code() {
     
    500500
    501501    /**
    502      * @covers ::add()
     502     * @covers ::add
    503503     */
    504504    public function test_add_with_code_and_message_and_data_should_add_an_error_with_that_message() {
     
    509509
    510510    /**
    511      * @covers ::add()
     511     * @covers ::add
    512512     */
    513513    public function test_add_with_code_and_message_and_data_should_store_that_data() {
     
    518518
    519519    /**
    520      * @covers ::add()
     520     * @covers ::add
    521521     */
    522522    public function test_add_multiple_times_with_the_same_code_should_add_additional_messages_for_that_code() {
     
    530530
    531531    /**
    532      * @covers ::add()
     532     * @covers ::add
    533533     */
    534534    public function test_add_multiple_times_with_the_same_code_and_different_data_should_store_only_the_last_added_data() {
     
    540540
    541541    /**
    542      * @covers ::add_data()
     542     * @covers ::add_data
    543543     */
    544544    public function test_add_data_with_empty_data_empty_code_should_create_orphaned_data_with_no_error() {
     
    549549
    550550    /**
    551      * @covers ::add_data()
     551     * @covers ::add_data
    552552     */
    553553    public function test_add_data_with_empty_data_empty_code_no_errors_should_create_data_under_an_empty_code_key() {
     
    558558
    559559    /**
    560      * @covers ::add_data()
     560     * @covers ::add_data
    561561     */
    562562    public function test_add_data_with_data_empty_code_and_one_error_should_store_the_data_under_that_code() {
     
    568568
    569569    /**
    570      * @covers ::add_data()
     570     * @covers ::add_data
    571571     */
    572572    public function test_add_data_with_data_empty_code_and_multiple_errors_with_different_codes_should_store_it_under_the_first_code() {
     
    580580
    581581    /**
    582      * @covers ::add_data()
     582     * @covers ::add_data
    583583     */
    584584    public function test_add_data_with_data_empty_code_and_multiple_errors_with_same_code_should_store_it_under_the_first_code() {
     
    593593
    594594    /**
    595      * @covers ::add_data()
     595     * @covers ::add_data
    596596     */
    597597    public function test_add_data_with_data_and_code_and_no_errors_should_create_orphaned_data_with_no_error() {
     
    602602
    603603    /**
    604      * @covers ::add_data()
     604     * @covers ::add_data
    605605     */
    606606    public function test_add_data_with_data_and_code_no_errors_should_create_data_under_that_code_key() {
     
    611611
    612612    /**
    613      * @covers ::add_data()
     613     * @covers ::add_data
    614614     */
    615615    public function test_add_data_with_data_and_code_one_error_different_code_should_create_orphaned_data_with_no_error() {
     
    622622
    623623    /**
    624      * @covers ::add_data()
     624     * @covers ::add_data
    625625     */
    626626    public function test_add_data_with_data_and_code_one_error_different_code_should_create_data_under_that_code_key() {
     
    633633
    634634    /**
    635      * @covers ::add_data()
     635     * @covers ::add_data
    636636     */
    637637    public function test_add_data_with_data_and_code_should_add_data() {
     
    644644
    645645    /**
    646      * @covers ::remove()
     646     * @covers ::remove
    647647     */
    648648    public function test_remove_with_no_errors_should_affect_nothing() {
     
    657657
    658658    /**
    659      * @covers ::remove()
     659     * @covers ::remove
    660660     */
    661661    public function test_remove_empty_code_no_errors_should_affect_nothing() {
     
    670670
    671671    /**
    672      * @covers ::remove()
     672     * @covers ::remove
    673673     */
    674674    public function test_remove_empty_code_and_one_error_with_empty_string_code_should_remove_error() {
     
    685685
    686686    /**
    687      * @covers ::remove()
     687     * @covers ::remove
    688688     */
    689689    public function test_remove_empty_code_and_one_error_with_empty_string_code_should_remove_error_data() {
     
    698698
    699699    /**
    700      * @covers ::remove()
     700     * @covers ::remove
    701701     */
    702702    public function test_remove_should_remove_the_error_with_the_given_code() {
     
    709709
    710710    /**
    711      * @covers ::remove()
     711     * @covers ::remove
    712712     */
    713713    public function test_remove_should_remove_the_error_data_associated_with_the_given_code() {
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r48439 r48858  
    680680     * Test _wp_delete_customize_changeset_dependent_auto_drafts.
    681681     *
    682      * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts()
     682     * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts
    683683     */
    684684    function test_wp_delete_customize_changeset_dependent_auto_drafts() {
  • trunk/tests/phpunit/tests/post/types.php

    r47381 r48858  
    6969    /**
    7070     * @ticket 35985
    71      * @covers ::register_post_type()
     71     * @covers ::register_post_type
    7272     */
    7373    function test_register_post_type_exclude_from_search_should_default_to_opposite_value_of_public() {
     
    8383    /**
    8484     * @ticket 35985
    85      * @covers ::register_post_type()
     85     * @covers ::register_post_type
    8686     */
    8787    function test_register_post_type_publicly_queryable_should_default_to_value_of_public() {
     
    9797    /**
    9898     * @ticket 35985
    99      * @covers ::register_post_type()
     99     * @covers ::register_post_type
    100100     */
    101101    function test_register_post_type_show_ui_should_default_to_value_of_public() {
     
    111111    /**
    112112     * @ticket 35985
    113      * @covers ::register_post_type()
     113     * @covers ::register_post_type
    114114     */
    115115    function test_register_post_type_show_in_menu_should_default_to_value_of_show_ui() {
     
    130130    /**
    131131     * @ticket 35985
    132      * @covers ::register_post_type()
     132     * @covers ::register_post_type
    133133     */
    134134    function test_register_post_type_show_in_nav_menus_should_default_to_value_of_public() {
     
    144144    /**
    145145     * @ticket 35985
    146      * @covers ::register_post_type()
     146     * @covers ::register_post_type
    147147     */
    148148    function test_register_post_type_show_in_admin_bar_should_default_to_value_of_show_in_menu() {
  • trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php

    r48437 r48858  
    259259     * @ticket 45098
    260260     *
    261      * @covers WP_REST_Block_Renderer_Controller::register_routes()
     261     * @covers WP_REST_Block_Renderer_Controller::register_routes
    262262     */
    263263    public function test_register_routes() {
     
    274274     * @ticket 45098
    275275     *
    276      * @covers WP_REST_Block_Renderer_Controller::get_item()
     276     * @covers WP_REST_Block_Renderer_Controller::get_item
    277277     */
    278278    public function test_get_item_without_permissions() {
     
    306306     * @ticket 45098
    307307     *
    308      * @covers WP_REST_Block_Renderer_Controller::get_item()
     308     * @covers WP_REST_Block_Renderer_Controller::get_item
    309309     */
    310310    public function test_get_item_invalid_block_name() {
     
    323323     * @ticket 45098
    324324     *
    325      * @covers WP_REST_Block_Renderer_Controller::get_item()
     325     * @covers WP_REST_Block_Renderer_Controller::get_item
    326326     */
    327327    public function test_get_item_invalid_attribute() {
     
    344344     * @ticket 45098
    345345     *
    346      * @covers WP_REST_Block_Renderer_Controller::get_item()
     346     * @covers WP_REST_Block_Renderer_Controller::get_item
    347347     */
    348348    public function test_get_item_unrecognized_attribute() {
     
    365365     * @ticket 45098
    366366     *
    367      * @covers WP_REST_Block_Renderer_Controller::get_item()
     367     * @covers WP_REST_Block_Renderer_Controller::get_item
    368368     */
    369369    public function test_get_item_default_attributes() {
     
    397397     * @ticket 45098
    398398     *
    399      * @covers WP_REST_Block_Renderer_Controller::get_item()
     399     * @covers WP_REST_Block_Renderer_Controller::get_item
    400400     */
    401401    public function test_get_item() {
     
    590590     * @ticket 45098
    591591     *
    592      * @covers WP_REST_Block_Renderer_Controller::get_item_schema()
     592     * @covers WP_REST_Block_Renderer_Controller::get_item_schema
    593593     */
    594594    public function test_get_item_schema() {
  • trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r48275 r48858  
    35383538     * Test update_item() with same template that no longer exists.
    35393539     *
    3540      * @covers WP_REST_Posts_Controller::check_template()
     3540     * @covers WP_REST_Posts_Controller::check_template
    35413541     * @ticket 39996
    35423542     */
  • trunk/tests/phpunit/tests/theme.php

    r48190 r48858  
    353353     * Test _wp_keep_alive_customize_changeset_dependent_auto_drafts.
    354354     *
    355      * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts()
     355     * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts
    356356     */
    357357    function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() {
  • trunk/tests/phpunit/tests/widgets.php

    r48121 r48858  
    741741     * Tests for when 'sidebars_widgets' theme mod is populated.
    742742     *
    743      * @covers ::retrieve_widgets()
     743     * @covers ::retrieve_widgets
    744744     */
    745745    function test_retrieve_widgets_with_theme_mod() {
     
    805805     * Tests for when sidebars widgets matches registered sidebars.
    806806     *
    807      * @covers ::retrieve_widgets()
     807     * @covers ::retrieve_widgets
    808808     */
    809809    function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() {
     
    843843     * Tests for when sidebars widgets doesn't match registered sidebars.
    844844     *
    845      * @covers ::retrieve_widgets()
     845     * @covers ::retrieve_widgets
    846846     */
    847847    function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() {
     
    937937     * Tests for Customizer mode.
    938938     *
    939      * @covers ::retrieve_widgets()
     939     * @covers ::retrieve_widgets
    940940     */
    941941    function test_retrieve_widgets_for_customizer() {
     
    10091009     * Tests for orphaned widgets being moved into inactive widgets.
    10101010     *
    1011      * @covers ::retrieve_widgets()
     1011     * @covers ::retrieve_widgets
    10121012     */
    10131013    function test_retrieve_widgets_move_orphaned_widgets_to_inactive() {
     
    10441044     * Test _wp_remove_unregistered_widgets.
    10451045     *
    1046      * @covers ::_wp_remove_unregistered_widgets()
     1046     * @covers ::_wp_remove_unregistered_widgets
    10471047     */
    10481048    public function test__wp_remove_unregistered_widgets() {
     
    10741074     * Two themes with one sidebar each should just map, switching to a theme not previously-active.
    10751075     *
    1076      * @covers ::wp_map_sidebars_widgets()
     1076     * @covers ::wp_map_sidebars_widgets
    10771077     */
    10781078    public function test_one_sidebar_each() {
     
    10941094     * Sidebars with the same name should map, switching to a theme not previously-active.
    10951095     *
    1096      * @covers ::wp_map_sidebars_widgets()
     1096     * @covers ::wp_map_sidebars_widgets
    10971097     */
    10981098    public function test_sidebars_with_same_slug() {
     
    11121112     * Make educated guesses on theme sidebars.
    11131113     *
    1114      * @covers ::wp_map_sidebars_widgets()
     1114     * @covers ::wp_map_sidebars_widgets
    11151115     */
    11161116    public function test_sidebar_guessing() {
     
    11351135     * Make sure two sidebars that fall in the same group don't get the same menu assigned.
    11361136     *
    1137      * @covers ::wp_map_sidebars_widgets()
     1137     * @covers ::wp_map_sidebars_widgets
    11381138     */
    11391139    public function test_sidebar_guessing_one_menu_per_group() {
     
    11561156     * Make sure two sidebars that fall in the same group get menus assigned from the same group.
    11571157     *
    1158      * @covers ::wp_map_sidebars_widgets()
     1158     * @covers ::wp_map_sidebars_widgets
    11591159     */
    11601160    public function test_sidebar_guessing_one_menu_per_sidebar() {
  • trunk/tests/phpunit/tests/widgets/media-audio-widget.php

    r46586 r48858  
    8686     * Test constructor.
    8787     *
    88      * @covers WP_Widget_Media_Audio::__construct()
     88     * @covers WP_Widget_Media_Audio::__construct
    8989     */
    9090    function test_constructor() {
  • trunk/tests/phpunit/tests/widgets/media-gallery-widget.php

    r48464 r48858  
    3030     * Test get_instance_schema method.
    3131     *
    32      * @covers WP_Widget_Media_Gallery::get_instance_schema()
     32     * @covers WP_Widget_Media_Gallery::get_instance_schema
    3333     */
    3434    public function test_get_instance_schema() {
     
    5252     * Test update() method.
    5353     *
    54      * @covers WP_Widget_Media_Gallery::render_media()
     54     * @covers WP_Widget_Media_Gallery::render_media
    5555     */
    5656    public function test_render_media() {
     
    9090     * Test enqueue_admin_scripts() method.
    9191     *
    92      * @covers WP_Widget_Media_Gallery::enqueue_admin_scripts()
     92     * @covers WP_Widget_Media_Gallery::enqueue_admin_scripts
    9393     */
    9494    public function test_enqueue_admin_scripts() {
     
    109109     * Test update() method.
    110110     *
    111      * @covers WP_Widget_Media_Gallery::update()
     111     * @covers WP_Widget_Media_Gallery::update
    112112     */
    113113    public function test_update() {
     
    190190     * Test render_control_template_scripts() method.
    191191     *
    192      * @covers WP_Widget_Media_Gallery::render_control_template_scripts()
     192     * @covers WP_Widget_Media_Gallery::render_control_template_scripts
    193193     */
    194194    public function test_render_control_template_scripts() {
  • trunk/tests/phpunit/tests/widgets/media-image-widget.php

    r48557 r48858  
    9393     * Test constructor.
    9494     *
    95      * @covers WP_Widget_Media_Image::__construct()
     95     * @covers WP_Widget_Media_Image::__construct
    9696     */
    9797    function test_constructor() {
  • trunk/tests/phpunit/tests/widgets/media-video-widget.php

    r46586 r48858  
    3030     * Test get_instance_schema method.
    3131     *
    32      * @covers WP_Widget_Media_Video::get_instance_schema()
     32     * @covers WP_Widget_Media_Video::get_instance_schema
    3333     */
    3434    function test_get_instance_schema() {
     
    8787     * Test constructor.
    8888     *
    89      * @covers WP_Widget_Media_Video::__construct()
     89     * @covers WP_Widget_Media_Video::__construct
    9090     */
    9191    function test_constructor() {
     
    116116     * Test get_instance_schema method.
    117117     *
    118      * @covers WP_Widget_Media_Video::update()
     118     * @covers WP_Widget_Media_Video::update
    119119     */
    120120    function test_update() {
     
    216216     * Test render_media method.
    217217     *
    218      * @covers WP_Widget_Media_Video::render_media()
    219      * @covers WP_Widget_Media_Video::inject_video_max_width_style()
     218     * @covers WP_Widget_Media_Video::render_media
     219     * @covers WP_Widget_Media_Video::inject_video_max_width_style
    220220     */
    221221    function test_render_media() {
     
    304304     * @global WP_Scripts $wp_scripts
    305305     * @global WP_Styles $wp_styles
    306      * @covers WP_Widget_Media_Video::enqueue_preview_scripts()
     306     * @covers WP_Widget_Media_Video::enqueue_preview_scripts
    307307     */
    308308    function test_enqueue_preview_scripts() {
     
    329329     * Test enqueue_admin_scripts method.
    330330     *
    331      * @covers WP_Widget_Media_Video::enqueue_admin_scripts()
     331     * @covers WP_Widget_Media_Video::enqueue_admin_scripts
    332332     */
    333333    function test_enqueue_admin_scripts() {
     
    342342     * Test render_control_template_scripts method.
    343343     *
    344      * @covers WP_Widget_Media_Video::render_control_template_scripts()
     344     * @covers WP_Widget_Media_Video::render_control_template_scripts
    345345     */
    346346    function test_render_control_template_scripts() {
  • trunk/tests/phpunit/tests/widgets/media-widget.php

    r48464 r48858  
    5151     * Test constructor.
    5252     *
    53      * @covers WP_Widget_Media::__construct()
    54      * @covers WP_Widget_Media::_register()
     53     * @covers WP_Widget_Media::__construct
     54     * @covers WP_Widget_Media::_register
    5555     */
    5656    function test_constructor() {
     
    107107     *
    108108     * @global WP_Customize_Manager $wp_customize
    109      * @covers WP_Widget_Media::__construct()
    110      * @covers WP_Widget_Media::_register()
     109     * @covers WP_Widget_Media::__construct
     110     * @covers WP_Widget_Media::_register
    111111     */
    112112    function test_constructor_in_customize_preview() {
     
    229229     * Test update method.
    230230     *
    231      * @covers WP_Widget_Media::update()
     231     * @covers WP_Widget_Media::update
    232232     */
    233233    function test_update() {
     
    315315     * Test widget method.
    316316     *
    317      * @covers WP_Widget_Media::widget()
    318      * @covers WP_Widget_Media::render_media()
     317     * @covers WP_Widget_Media::widget
     318     * @covers WP_Widget_Media::render_media
    319319     */
    320320    function test_widget() {
     
    390390     * Test form method.
    391391     *
    392      * @covers WP_Widget_Media::form()
     392     * @covers WP_Widget_Media::form
    393393     */
    394394    function test_form() {
     
    407407     * Test display_media_state method.
    408408     *
    409      * @covers WP_Widget_Media::display_media_state()
     409     * @covers WP_Widget_Media::display_media_state
    410410     */
    411411    function test_display_media_state() {
     
    449449     * Test enqueue_admin_scripts method.
    450450     *
    451      * @covers WP_Widget_Media::enqueue_admin_scripts()
     451     * @covers WP_Widget_Media::enqueue_admin_scripts
    452452     */
    453453    function test_enqueue_admin_scripts() {
     
    477477     * Test has_content method.
    478478     *
    479      * @covers WP_Widget_Media::has_content()
     479     * @covers WP_Widget_Media::has_content
    480480     */
    481481    function test_has_content() {
  • trunk/tests/phpunit/tests/widgets/text-widget.php

    r48121 r48858  
    7676     *
    7777     * @global WP_Customize_Manager $wp_customize
    78      * @covers WP_Widget_Text::__construct()
    79      * @covers WP_Widget_Text::_register()
     78     * @covers WP_Widget_Text::__construct
     79     * @covers WP_Widget_Text::_register
    8080     */
    8181    function test__register_in_customize_preview() {
Note: See TracChangeset for help on using the changeset viewer.