IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 1742 | 1742 | * publishing |
| 1743 | 1743 | * |
| 1744 | 1744 | * @ticket 39221 |
| 1745 | | * @covers _wp_customize_publish_changeset() |
| | 1745 | * @covers ::_wp_customize_publish_changeset() |
| 1746 | 1746 | * @see WP_Customize_Widgets::schedule_customize_register() |
| 1747 | 1747 | * @see WP_Customize_Widgets::customize_register() |
| 1748 | 1748 | */ |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 735 | 735 | * Testing `wp_enqueue_code_editor` with file path. |
| 736 | 736 | * |
| 737 | 737 | * @ticket 41871 |
| 738 | | * @covers wp_enqueue_code_editor() |
| | 738 | * @covers ::wp_enqueue_code_editor() |
| 739 | 739 | */ |
| 740 | 740 | public function test_wp_enqueue_code_editor_when_php_file_will_be_passed() { |
| 741 | 741 | $real_file = WP_PLUGIN_DIR . '/hello.php'; |
| … |
… |
|
| 822 | 822 | * Testing `wp_enqueue_code_editor` with `compact`. |
| 823 | 823 | * |
| 824 | 824 | * @ticket 41871 |
| 825 | | * @covers wp_enqueue_code_editor() |
| | 825 | * @covers ::wp_enqueue_code_editor() |
| 826 | 826 | */ |
| 827 | 827 | public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() { |
| 828 | 828 | $wp_enqueue_code_editor = wp_enqueue_code_editor( compact( 'file' ) ); |
| … |
… |
|
| 904 | 904 | * Testing `wp_enqueue_code_editor` with `array_merge`. |
| 905 | 905 | * |
| 906 | 906 | * @ticket 41871 |
| 907 | | * @covers wp_enqueue_code_editor() |
| | 907 | * @covers ::wp_enqueue_code_editor() |
| 908 | 908 | */ |
| 909 | 909 | public function test_wp_enqueue_code_editor_when_generated_array_by_array_merge_will_be_passed() { |
| 910 | 910 | $wp_enqueue_code_editor = wp_enqueue_code_editor( |
| … |
… |
|
| 1001 | 1001 | * Testing `wp_enqueue_code_editor` with `array`. |
| 1002 | 1002 | * |
| 1003 | 1003 | * @ticket 41871 |
| 1004 | | * @covers wp_enqueue_code_editor() |
| | 1004 | * @covers ::wp_enqueue_code_editor() |
| 1005 | 1005 | */ |
| 1006 | 1006 | public function test_wp_enqueue_code_editor_when_simple_array_will_be_passed() { |
| 1007 | 1007 | $wp_enqueue_code_editor = wp_enqueue_code_editor( |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 539 | 539 | * wpautop() should not add extra </p> before <figcaption> |
| 540 | 540 | * |
| 541 | 541 | * @covers ::wpautop |
| 542 | | * @uses trim |
| | 542 | * @uses ::trim |
| 543 | 543 | * |
| 544 | 544 | * @ticket 39307 |
| 545 | 545 | */ |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | | * @covers WP_Error:get_error_code() |
| | 171 | * @covers WP_Error::get_error_code() |
| 172 | 172 | */ |
| 173 | 173 | public function test_get_error_code_with_no_errors_should_return_an_empty_string() { |
| 174 | 174 | $this->assertSame( '', $this->WP_Error->get_error_code() ); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | | * @covers WP_Error:get_error_code() |
| | 178 | * @covers WP_Error::get_error_code() |
| 179 | 179 | */ |
| 180 | 180 | public function test_get_error_code_with_one_error_should_return_that_error_code() { |
| 181 | 181 | $this->WP_Error->add( 'code', 'message' ); |
| … |
… |
|
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | | * @covers WP_Error:get_error_code() |
| | 187 | * @covers WP_Error::get_error_code() |
| 188 | 188 | */ |
| 189 | 189 | public function test_get_error_code_with_multiple_errors_should_return_only_the_first_error_code() { |
| 190 | 190 | $this->WP_Error->add( 'code', 'message' ); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 31 | 31 | /** |
| 32 | 32 | * Two themes with one location each should just map, switching to a theme not previously-active. |
| 33 | 33 | * |
| 34 | | * @covers wp_map_nav_menu_locations() |
| | 34 | * @covers ::wp_map_nav_menu_locations() |
| 35 | 35 | */ |
| 36 | 36 | function test_one_location_each() { |
| 37 | 37 | $this->register_nav_menu_locations( array( 'primary' ) ); |
| … |
… |
|
| 50 | 50 | /** |
| 51 | 51 | * Only registered locations should be mapped and returned. |
| 52 | 52 | * |
| 53 | | * @covers wp_map_nav_menu_locations() |
| | 53 | * @covers ::wp_map_nav_menu_locations() |
| 54 | 54 | */ |
| 55 | 55 | function test_filter_registered_locations() { |
| 56 | 56 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
| … |
… |
|
| 71 | 71 | /** |
| 72 | 72 | * Locations with the same name should map, switching to a theme not previously-active. |
| 73 | 73 | * |
| 74 | | * @covers wp_map_nav_menu_locations() |
| | 74 | * @covers ::wp_map_nav_menu_locations() |
| 75 | 75 | */ |
| 76 | 76 | function test_locations_with_same_slug() { |
| 77 | 77 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
| … |
… |
|
| 90 | 90 | /** |
| 91 | 91 | * If the new theme was previously active, we should honor any changes to nav menu mapping done when the other theme was active. |
| 92 | 92 | * |
| 93 | | * @covers wp_map_nav_menu_locations() |
| | 93 | * @covers ::wp_map_nav_menu_locations() |
| 94 | 94 | */ |
| 95 | 95 | function test_new_theme_previously_active() { |
| 96 | 96 | $this->register_nav_menu_locations( array( 'primary' ) ); |
| … |
… |
|
| 114 | 114 | /** |
| 115 | 115 | * Make educated guesses on theme locations. |
| 116 | 116 | * |
| 117 | | * @covers wp_map_nav_menu_locations() |
| | 117 | * @covers ::wp_map_nav_menu_locations() |
| 118 | 118 | */ |
| 119 | 119 | function test_location_guessing() { |
| 120 | 120 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
| … |
… |
|
| 137 | 137 | /** |
| 138 | 138 | * Make sure two locations that fall in the same group don't get the same menu assigned. |
| 139 | 139 | * |
| 140 | | * @covers wp_map_nav_menu_locations() |
| | 140 | * @covers ::wp_map_nav_menu_locations() |
| 141 | 141 | */ |
| 142 | 142 | function test_location_guessing_one_menu_per_group() { |
| 143 | 143 | $this->register_nav_menu_locations( array( 'primary' ) ); |
| … |
… |
|
| 158 | 158 | /** |
| 159 | 159 | * Make sure two locations that fall in the same group get menus assigned from the same group. |
| 160 | 160 | * |
| 161 | | * @covers wp_map_nav_menu_locations() |
| | 161 | * @covers ::wp_map_nav_menu_locations() |
| 162 | 162 | */ |
| 163 | 163 | function test_location_guessing_one_menu_per_location() { |
| 164 | 164 | $this->register_nav_menu_locations( array( 'primary', 'main' ) ); |
| … |
… |
|
| 181 | 181 | /** |
| 182 | 182 | * Technically possible to register menu locations numerically. |
| 183 | 183 | * |
| 184 | | * @covers wp_map_nav_menu_locations() |
| | 184 | * @covers ::wp_map_nav_menu_locations() |
| 185 | 185 | */ |
| 186 | 186 | function test_numerical_locations() { |
| 187 | 187 | $this->register_nav_menu_locations( array( 'primary', 1 ) ); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 162 | 162 | * Test calling get_settings_errors() with variations on where it gets errors from. |
| 163 | 163 | * |
| 164 | 164 | * @ticket 42498 |
| 165 | | * @covers get_settings_errors() |
| | 165 | * @covers ::get_settings_errors() |
| 166 | 166 | * @global array $wp_settings_errors |
| 167 | 167 | */ |
| 168 | 168 | public function test_get_settings_errors_sources() { |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 630 | 630 | /** |
| 631 | 631 | * Test _wp_delete_customize_changeset_dependent_auto_drafts. |
| 632 | 632 | * |
| 633 | | * @covers _wp_delete_customize_changeset_dependent_auto_drafts() |
| | 633 | * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts() |
| 634 | 634 | */ |
| 635 | 635 | function test_wp_delete_customize_changeset_dependent_auto_drafts() { |
| 636 | 636 | $auto_draft_post_id = $this->factory()->post->create( |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 320 | 320 | /** |
| 321 | 321 | * Test _wp_keep_alive_customize_changeset_dependent_auto_drafts. |
| 322 | 322 | * |
| 323 | | * @covers _wp_keep_alive_customize_changeset_dependent_auto_drafts() |
| | 323 | * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts() |
| 324 | 324 | */ |
| 325 | 325 | function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() { |
| 326 | 326 | $nav_created_post_ids = $this->factory()->post->create_many( |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 723 | 723 | /** |
| 724 | 724 | * Tests for when 'sidebars_widgets' theme mod is populated. |
| 725 | 725 | * |
| 726 | | * @covers retrieve_widgets() |
| | 726 | * @covers ::retrieve_widgets() |
| 727 | 727 | */ |
| 728 | 728 | function test_retrieve_widgets_with_theme_mod() { |
| 729 | 729 | global $sidebars_widgets, $_wp_sidebars_widgets; |
| … |
… |
|
| 786 | 786 | /** |
| 787 | 787 | * Tests for when sidebars widgets matches registered sidebars. |
| 788 | 788 | * |
| 789 | | * @covers retrieve_widgets() |
| | 789 | * @covers ::retrieve_widgets() |
| 790 | 790 | */ |
| 791 | 791 | function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() { |
| 792 | 792 | global $sidebars_widgets; |
| … |
… |
|
| 824 | 824 | /** |
| 825 | 825 | * Tests for when sidebars widgets doesn't match registered sidebars. |
| 826 | 826 | * |
| 827 | | * @covers retrieve_widgets() |
| | 827 | * @covers ::retrieve_widgets() |
| 828 | 828 | */ |
| 829 | 829 | function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() { |
| 830 | 830 | global $sidebars_widgets, $_wp_sidebars_widgets; |
| … |
… |
|
| 918 | 918 | /** |
| 919 | 919 | * Tests for Customizer mode. |
| 920 | 920 | * |
| 921 | | * @covers retrieve_widgets() |
| | 921 | * @covers ::retrieve_widgets() |
| 922 | 922 | */ |
| 923 | 923 | function test_retrieve_widgets_for_customizer() { |
| 924 | 924 | global $sidebars_widgets, $_wp_sidebars_widgets; |
| … |
… |
|
| 990 | 990 | /** |
| 991 | 991 | * Tests for orphaned widgets being moved into inactive widgets. |
| 992 | 992 | * |
| 993 | | * @covers retrieve_widgets() |
| | 993 | * @covers ::retrieve_widgets() |
| 994 | 994 | */ |
| 995 | 995 | function test_retrieve_widgets_move_orphaned_widgets_to_inactive() { |
| 996 | 996 | global $sidebars_widgets; |
| … |
… |
|
| 1025 | 1025 | /** |
| 1026 | 1026 | * Test _wp_remove_unregistered_widgets. |
| 1027 | 1027 | * |
| 1028 | | * @covers _wp_remove_unregistered_widgets() |
| | 1028 | * @covers ::_wp_remove_unregistered_widgets() |
| 1029 | 1029 | */ |
| 1030 | 1030 | public function test__wp_remove_unregistered_widgets() { |
| 1031 | 1031 | $widgets = array( |
| … |
… |
|
| 1055 | 1055 | /** |
| 1056 | 1056 | * Two themes with one sidebar each should just map, switching to a theme not previously-active. |
| 1057 | 1057 | * |
| 1058 | | * @covers wp_map_sidebars_widgets() |
| | 1058 | * @covers ::wp_map_sidebars_widgets() |
| 1059 | 1059 | */ |
| 1060 | 1060 | public function test_one_sidebar_each() { |
| 1061 | 1061 | $this->register_sidebars( array( 'primary' ) ); |
| … |
… |
|
| 1075 | 1075 | /** |
| 1076 | 1076 | * Sidebars with the same name should map, switching to a theme not previously-active. |
| 1077 | 1077 | * |
| 1078 | | * @covers wp_map_sidebars_widgets() |
| | 1078 | * @covers ::wp_map_sidebars_widgets() |
| 1079 | 1079 | */ |
| 1080 | 1080 | public function test_sidebars_with_same_slug() { |
| 1081 | 1081 | $this->register_sidebars( array( 'primary', 'secondary' ) ); |
| … |
… |
|
| 1093 | 1093 | /** |
| 1094 | 1094 | * Make educated guesses on theme sidebars. |
| 1095 | 1095 | * |
| 1096 | | * @covers wp_map_sidebars_widgets() |
| | 1096 | * @covers ::wp_map_sidebars_widgets() |
| 1097 | 1097 | */ |
| 1098 | 1098 | public function test_sidebar_guessing() { |
| 1099 | 1099 | $this->register_sidebars( array( 'primary', 'secondary' ) ); |
| … |
… |
|
| 1116 | 1116 | /** |
| 1117 | 1117 | * Make sure two sidebars that fall in the same group don't get the same menu assigned. |
| 1118 | 1118 | * |
| 1119 | | * @covers wp_map_sidebars_widgets() |
| | 1119 | * @covers ::wp_map_sidebars_widgets() |
| 1120 | 1120 | */ |
| 1121 | 1121 | public function test_sidebar_guessing_one_menu_per_group() { |
| 1122 | 1122 | $this->register_sidebars( array( 'primary' ) ); |
| … |
… |
|
| 1137 | 1137 | /** |
| 1138 | 1138 | * Make sure two sidebars that fall in the same group get menus assigned from the same group. |
| 1139 | 1139 | * |
| 1140 | | * @covers wp_map_sidebars_widgets() |
| | 1140 | * @covers ::wp_map_sidebars_widgets() |
| 1141 | 1141 | */ |
| 1142 | 1142 | public function test_sidebar_guessing_one_menu_per_sidebar() { |
| 1143 | 1143 | $this->register_sidebars( array( 'primary', 'main' ) ); |