Make WordPress Core

Changeset 42636


Ignore:
Timestamp:
02/01/2018 04:08:04 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct erroneous @covers and @use tags.

Props jipmoors.
Fixes #43203.

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

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/manager.php

    r42615 r42636  
    17531753     *
    17541754     * @ticket 39221
    1755      * @covers _wp_customize_publish_changeset()
     1755     * @covers ::_wp_customize_publish_changeset()
    17561756     * @see WP_Customize_Widgets::schedule_customize_register()
    17571757     * @see WP_Customize_Widgets::customize_register()
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r42343 r42636  
    736736     *
    737737     * @ticket 41871
    738      * @covers wp_enqueue_code_editor()
     738     * @covers ::wp_enqueue_code_editor()
    739739     */
    740740    public function test_wp_enqueue_code_editor_when_php_file_will_be_passed() {
     
    823823     *
    824824     * @ticket 41871
    825      * @covers wp_enqueue_code_editor()
     825     * @covers ::wp_enqueue_code_editor()
    826826     */
    827827    public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() {
     
    905905     *
    906906     * @ticket 41871
    907      * @covers wp_enqueue_code_editor()
     907     * @covers ::wp_enqueue_code_editor()
    908908     */
    909909    public function test_wp_enqueue_code_editor_when_generated_array_by_array_merge_will_be_passed() {
     
    10021002     *
    10031003     * @ticket 41871
    1004      * @covers wp_enqueue_code_editor()
     1004     * @covers ::wp_enqueue_code_editor()
    10051005     */
    10061006    public function test_wp_enqueue_code_editor_when_simple_array_will_be_passed() {
  • trunk/tests/phpunit/tests/formatting/Autop.php

    r42343 r42636  
    540540     *
    541541     * @covers ::wpautop
    542      * @uses trim
     542     * @uses ::trim
    543543     *
    544544     * @ticket 39307
  • trunk/tests/phpunit/tests/general/wpError.php

    r42255 r42636  
    169169
    170170    /**
    171      * @covers WP_Error:get_error_code()
     171     * @covers WP_Error::get_error_code()
    172172     */
    173173    public function test_get_error_code_with_no_errors_should_return_an_empty_string() {
     
    176176
    177177    /**
    178      * @covers WP_Error:get_error_code()
     178     * @covers WP_Error::get_error_code()
    179179     */
    180180    public function test_get_error_code_with_one_error_should_return_that_error_code() {
     
    185185
    186186    /**
    187      * @covers WP_Error:get_error_code()
     187     * @covers WP_Error::get_error_code()
    188188     */
    189189    public function test_get_error_code_with_multiple_errors_should_return_only_the_first_error_code() {
  • trunk/tests/phpunit/tests/menu/nav-menu.php

    r42343 r42636  
    3232     * Two themes with one location each should just map, switching to a theme not previously-active.
    3333     *
    34      * @covers wp_map_nav_menu_locations()
     34     * @covers ::wp_map_nav_menu_locations()
    3535     */
    3636    function test_one_location_each() {
     
    5151     * Only registered locations should be mapped and returned.
    5252     *
    53      * @covers wp_map_nav_menu_locations()
     53     * @covers ::wp_map_nav_menu_locations()
    5454     */
    5555    function test_filter_registered_locations() {
     
    7272     * Locations with the same name should map, switching to a theme not previously-active.
    7373     *
    74      * @covers wp_map_nav_menu_locations()
     74     * @covers ::wp_map_nav_menu_locations()
    7575     */
    7676    function test_locations_with_same_slug() {
     
    9191     * If the new theme was previously active, we should honor any changes to nav menu mapping done when the other theme was active.
    9292     *
    93      * @covers wp_map_nav_menu_locations()
     93     * @covers ::wp_map_nav_menu_locations()
    9494     */
    9595    function test_new_theme_previously_active() {
     
    115115     * Make educated guesses on theme locations.
    116116     *
    117      * @covers wp_map_nav_menu_locations()
     117     * @covers ::wp_map_nav_menu_locations()
    118118     */
    119119    function test_location_guessing() {
     
    138138     * Make sure two locations that fall in the same group don't get the same menu assigned.
    139139     *
    140      * @covers wp_map_nav_menu_locations()
     140     * @covers ::wp_map_nav_menu_locations()
    141141     */
    142142    function test_location_guessing_one_menu_per_group() {
     
    159159     * Make sure two locations that fall in the same group get menus assigned from the same group.
    160160     *
    161      * @covers wp_map_nav_menu_locations()
     161     * @covers ::wp_map_nav_menu_locations()
    162162     */
    163163    function test_location_guessing_one_menu_per_location() {
     
    182182     * Technically possible to register menu locations numerically.
    183183     *
    184      * @covers wp_map_nav_menu_locations()
     184     * @covers ::wp_map_nav_menu_locations()
    185185     */
    186186    function test_numerical_locations() {
  • trunk/tests/phpunit/tests/option/sanitize-option.php

    r42343 r42636  
    163163     *
    164164     * @ticket 42498
    165      * @covers get_settings_errors()
     165     * @covers ::get_settings_errors()
    166166     * @global array $wp_settings_errors
    167167     */
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r42343 r42636  
    631631     * Test _wp_delete_customize_changeset_dependent_auto_drafts.
    632632     *
    633      * @covers _wp_delete_customize_changeset_dependent_auto_drafts()
     633     * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts()
    634634     */
    635635    function test_wp_delete_customize_changeset_dependent_auto_drafts() {
  • trunk/tests/phpunit/tests/theme.php

    r42343 r42636  
    321321     * Test _wp_keep_alive_customize_changeset_dependent_auto_drafts.
    322322     *
    323      * @covers _wp_keep_alive_customize_changeset_dependent_auto_drafts()
     323     * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts()
    324324     */
    325325    function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() {
  • trunk/tests/phpunit/tests/widgets.php

    r42362 r42636  
    724724     * Tests for when 'sidebars_widgets' theme mod is populated.
    725725     *
    726      * @covers retrieve_widgets()
     726     * @covers ::retrieve_widgets()
    727727     */
    728728    function test_retrieve_widgets_with_theme_mod() {
     
    787787     * Tests for when sidebars widgets matches registered sidebars.
    788788     *
    789      * @covers retrieve_widgets()
     789     * @covers ::retrieve_widgets()
    790790     */
    791791    function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() {
     
    825825     * Tests for when sidebars widgets doesn't match registered sidebars.
    826826     *
    827      * @covers retrieve_widgets()
     827     * @covers ::retrieve_widgets()
    828828     */
    829829    function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() {
     
    919919     * Tests for Customizer mode.
    920920     *
    921      * @covers retrieve_widgets()
     921     * @covers ::retrieve_widgets()
    922922     */
    923923    function test_retrieve_widgets_for_customizer() {
     
    991991     * Tests for orphaned widgets being moved into inactive widgets.
    992992     *
    993      * @covers retrieve_widgets()
     993     * @covers ::retrieve_widgets()
    994994     */
    995995    function test_retrieve_widgets_move_orphaned_widgets_to_inactive() {
     
    10261026     * Test _wp_remove_unregistered_widgets.
    10271027     *
    1028      * @covers _wp_remove_unregistered_widgets()
     1028     * @covers ::_wp_remove_unregistered_widgets()
    10291029     */
    10301030    public function test__wp_remove_unregistered_widgets() {
     
    10561056     * Two themes with one sidebar each should just map, switching to a theme not previously-active.
    10571057     *
    1058      * @covers wp_map_sidebars_widgets()
     1058     * @covers ::wp_map_sidebars_widgets()
    10591059     */
    10601060    public function test_one_sidebar_each() {
     
    10761076     * Sidebars with the same name should map, switching to a theme not previously-active.
    10771077     *
    1078      * @covers wp_map_sidebars_widgets()
     1078     * @covers ::wp_map_sidebars_widgets()
    10791079     */
    10801080    public function test_sidebars_with_same_slug() {
     
    10941094     * Make educated guesses on theme sidebars.
    10951095     *
    1096      * @covers wp_map_sidebars_widgets()
     1096     * @covers ::wp_map_sidebars_widgets()
    10971097     */
    10981098    public function test_sidebar_guessing() {
     
    11171117     * Make sure two sidebars that fall in the same group don't get the same menu assigned.
    11181118     *
    1119      * @covers wp_map_sidebars_widgets()
     1119     * @covers ::wp_map_sidebars_widgets()
    11201120     */
    11211121    public function test_sidebar_guessing_one_menu_per_group() {
     
    11381138     * Make sure two sidebars that fall in the same group get menus assigned from the same group.
    11391139     *
    1140      * @covers wp_map_sidebars_widgets()
     1140     * @covers ::wp_map_sidebars_widgets()
    11411141     */
    11421142    public function test_sidebar_guessing_one_menu_per_sidebar() {
Note: See TracChangeset for help on using the changeset viewer.