WordPress.org

Make WordPress Core

Ticket #43203: fixes_covers_and_use_declarations.patch

File fixes_covers_and_use_declarations.patch, 12.3 KB (added by jipmoors, 3 years ago)
  • tests/phpunit/tests/customize/manager.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    17421742         * publishing
    17431743         *
    17441744         * @ticket 39221
    1745          * @covers _wp_customize_publish_changeset()
     1745         * @covers ::_wp_customize_publish_changeset()
    17461746         * @see WP_Customize_Widgets::schedule_customize_register()
    17471747         * @see WP_Customize_Widgets::customize_register()
    17481748         */
  • tests/phpunit/tests/dependencies/scripts.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    735735         * Testing `wp_enqueue_code_editor` with file path.
    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() {
    741741                $real_file              = WP_PLUGIN_DIR . '/hello.php';
     
    822822         * Testing `wp_enqueue_code_editor` with `compact`.
    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() {
    828828                $wp_enqueue_code_editor = wp_enqueue_code_editor( compact( 'file' ) );
     
    904904         * Testing `wp_enqueue_code_editor` with `array_merge`.
    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() {
    910910                $wp_enqueue_code_editor = wp_enqueue_code_editor(
     
    10011001         * Testing `wp_enqueue_code_editor` with `array`.
    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() {
    10071007                $wp_enqueue_code_editor = wp_enqueue_code_editor(
  • tests/phpunit/tests/formatting/Autop.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    539539         * wpautop() should not add extra </p> before <figcaption>
    540540         *
    541541         * @covers ::wpautop
    542          * @uses trim
     542         * @uses ::trim
    543543         *
    544544         * @ticket 39307
    545545         */
  • tests/phpunit/tests/general/wpError.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    168168        }
    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() {
    174174                $this->assertSame( '', $this->WP_Error->get_error_code() );
    175175        }
    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() {
    181181                $this->WP_Error->add( 'code', 'message' );
     
    184184        }
    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() {
    190190                $this->WP_Error->add( 'code', 'message' );
  • tests/phpunit/tests/menu/nav-menu.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    3131        /**
    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() {
    3737                $this->register_nav_menu_locations( array( 'primary' ) );
     
    5050        /**
    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() {
    5656                $this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
     
    7171        /**
    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() {
    7777                $this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
     
    9090        /**
    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() {
    9696                $this->register_nav_menu_locations( array( 'primary' ) );
     
    114114        /**
    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() {
    120120                $this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
     
    137137        /**
    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() {
    143143                $this->register_nav_menu_locations( array( 'primary' ) );
     
    158158        /**
    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() {
    164164                $this->register_nav_menu_locations( array( 'primary', 'main' ) );
     
    181181        /**
    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() {
    187187                $this->register_nav_menu_locations( array( 'primary', 1 ) );
  • tests/phpunit/tests/option/sanitize-option.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    162162         * Test calling get_settings_errors() with variations on where it gets errors from.
    163163         *
    164164         * @ticket 42498
    165          * @covers get_settings_errors()
     165         * @covers ::get_settings_errors()
    166166         * @global array $wp_settings_errors
    167167         */
    168168        public function test_get_settings_errors_sources() {
  • tests/phpunit/tests/post/nav-menu.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    630630        /**
    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() {
    636636                $auto_draft_post_id = $this->factory()->post->create(
  • tests/phpunit/tests/theme.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    320320        /**
    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() {
    326326                $nav_created_post_ids = $this->factory()->post->create_many(
  • tests/phpunit/tests/widgets.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    723723        /**
    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() {
    729729                global $sidebars_widgets, $_wp_sidebars_widgets;
     
    786786        /**
    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() {
    792792                global $sidebars_widgets;
     
    824824        /**
    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() {
    830830                global $sidebars_widgets, $_wp_sidebars_widgets;
     
    918918        /**
    919919         * Tests for Customizer mode.
    920920         *
    921          * @covers retrieve_widgets()
     921         * @covers ::retrieve_widgets()
    922922         */
    923923        function test_retrieve_widgets_for_customizer() {
    924924                global $sidebars_widgets, $_wp_sidebars_widgets;
     
    990990        /**
    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() {
    996996                global $sidebars_widgets;
     
    10251025        /**
    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() {
    10311031                $widgets = array(
     
    10551055        /**
    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() {
    10611061                $this->register_sidebars( array( 'primary' ) );
     
    10751075        /**
    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() {
    10811081                $this->register_sidebars( array( 'primary', 'secondary' ) );
     
    10931093        /**
    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() {
    10991099                $this->register_sidebars( array( 'primary', 'secondary' ) );
     
    11161116        /**
    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() {
    11221122                $this->register_sidebars( array( 'primary' ) );
     
    11371137        /**
    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() {
    11431143                $this->register_sidebars( array( 'primary', 'main' ) );