Changeset 48858
- Timestamp:
- 08/25/2020 12:57:17 AM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesTemplate.php
r47777 r48858 132 132 * 133 133 * @ticket 42498 134 * @covers ::get_settings_errors ()134 * @covers ::get_settings_errors 135 135 * @global array $wp_settings_errors 136 136 */ … … 172 172 /** 173 173 * @ticket 44941 174 * @covers ::settings_errors ()174 * @covers ::settings_errors 175 175 * @global array $wp_settings_errors 176 176 * @dataProvider settings_errors_css_classes_provider -
trunk/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php
r48100 r48858 62 62 63 63 * @dataProvider data_test_columns_should_be_sortable 64 * @covers WP_Privacy_Requests_Table::prepare_items ()64 * @covers WP_Privacy_Requests_Table::prepare_items 65 65 * @ticket 43960 66 66 */ -
trunk/tests/phpunit/tests/ajax/CustomizeManager.php
r48438 r48858 104 104 * 105 105 * @ticket 30937 106 * @covers WP_Customize_Manager::save ()106 * @covers WP_Customize_Manager::save 107 107 */ 108 108 function test_save_failures() { … … 271 271 * 272 272 * @ticket 30937 273 * @covers WP_Customize_Manager::save ()273 * @covers WP_Customize_Manager::save 274 274 */ 275 275 function test_save_success_publish_create() { … … 300 300 * 301 301 * @ticket 30937 302 * @covers WP_Customize_Manager::save ()302 * @covers WP_Customize_Manager::save 303 303 */ 304 304 function test_save_success_publish_edit() { … … 339 339 * 340 340 * @ticket 38943 341 * @covers WP_Customize_Manager::save ()341 * @covers WP_Customize_Manager::save 342 342 */ 343 343 function test_success_save_post_date() { … … 437 437 * 438 438 * @ticket 39896 439 * @covers WP_Customize_Manager::save ()439 * @covers WP_Customize_Manager::save 440 440 */ 441 441 public function test_save_autosave() { … … 483 483 * 484 484 * @ticket 39896 485 * @covers WP_Customize_Manager::handle_changeset_trash_request ()485 * @covers WP_Customize_Manager::handle_changeset_trash_request 486 486 */ 487 487 public function test_handle_changeset_trash_request() { … … 571 571 * 572 572 * @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 575 575 */ 576 576 public function test_handle_dismiss_autosave_or_lock_request() { -
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
r47122 r48858 609 609 * Testing successful ajax_insert_auto_draft_post() call. 610 610 * 611 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post ()611 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post 612 612 */ 613 613 function test_ajax_insert_auto_draft_post_success() { … … 639 639 * Testing unsuccessful ajax_insert_auto_draft_post() call. 640 640 * 641 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post ()641 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post 642 642 */ 643 643 function test_ajax_insert_auto_draft_failures() { -
trunk/tests/phpunit/tests/customize/custom-css-setting.php
r46586 r48858 76 76 * Also checks for the post type and the Setting Type. 77 77 * 78 * @covers WP_Customize_Custom_CSS_Setting::__construct ()78 * @covers WP_Customize_Custom_CSS_Setting::__construct 79 79 */ 80 80 function test_construct() { … … 107 107 * 108 108 * @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 112 112 */ 113 113 function test_crud() { … … 267 267 * Test crud methods on WP_Customize_Custom_CSS_Setting. 268 268 * 269 * @covers WP_Customize_Custom_CSS_Setting::value ()269 * @covers WP_Customize_Custom_CSS_Setting::value 270 270 */ 271 271 function test_value_filter() { … … 307 307 * Test update filter on WP_Customize_Custom_CSS_Setting. 308 308 * 309 * @covers WP_Customize_Custom_CSS_Setting::update ()309 * @covers WP_Customize_Custom_CSS_Setting::update 310 310 */ 311 311 function test_update_filter() { … … 365 365 * as it picks up the Errors and passes them to the next assertion. 366 366 * 367 * @covers WP_Customize_Custom_CSS_Setting::validate ()367 * @covers WP_Customize_Custom_CSS_Setting::validate 368 368 */ 369 369 function test_validate() { -
trunk/tests/phpunit/tests/customize/manager.php
r48464 r48858 107 107 * Test WP_Customize_Manager::__construct(). 108 108 * 109 * @covers WP_Customize_Manager::__construct ()109 * @covers WP_Customize_Manager::__construct 110 110 */ 111 111 function test_constructor() { … … 152 152 * 153 153 * @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 156 156 */ 157 157 public function test_constructor_deferred_changeset_uuid() { … … 226 226 * Test WP_Customize_Manager::setup_theme() for admin screen. 227 227 * 228 * @covers WP_Customize_Manager::setup_theme ()228 * @covers WP_Customize_Manager::setup_theme 229 229 */ 230 230 function test_setup_theme_in_customize_admin() { … … 295 295 * Test WP_Customize_Manager::setup_theme() for frontend. 296 296 * 297 * @covers WP_Customize_Manager::setup_theme ()297 * @covers WP_Customize_Manager::setup_theme 298 298 */ 299 299 function test_setup_theme_in_frontend() { … … 330 330 * 331 331 * @ticket 39221 332 * @covers WP_Customize_Manager::settings_previewed ()332 * @covers WP_Customize_Manager::settings_previewed 333 333 */ 334 334 function test_settings_previewed() { … … 344 344 * 345 345 * @ticket 39896 346 * @covers WP_Customize_Manager::autosaved ()346 * @covers WP_Customize_Manager::autosaved 347 347 */ 348 348 public function test_autosaved() { … … 361 361 * 362 362 * @ticket 39896 363 * @covers WP_Customize_Manager::branching ()363 * @covers WP_Customize_Manager::branching 364 364 */ 365 365 public function test_branching() { … … 383 383 * 384 384 * @ticket 30937 385 * @covers WP_Customize_Manager::changeset_uuid ()385 * @covers WP_Customize_Manager::changeset_uuid 386 386 */ 387 387 function test_changeset_uuid() { … … 397 397 * 398 398 * @ticket 30937 399 * @covers WP_Customize_Manager::wp_loaded ()399 * @covers WP_Customize_Manager::wp_loaded 400 400 */ 401 401 function test_wp_loaded() { … … 415 415 * 416 416 * @ticket 30937 417 * @covers WP_Customize_Manager::find_changeset_post_id ()417 * @covers WP_Customize_Manager::find_changeset_post_id 418 418 */ 419 419 function test_find_changeset_post_id() { … … 440 440 * 441 441 * @ticket 30937 442 * @covers WP_Customize_Manager::changeset_post_id ()442 * @covers WP_Customize_Manager::changeset_post_id 443 443 */ 444 444 function test_changeset_post_id() { … … 464 464 * 465 465 * @ticket 30937 466 * @covers WP_Customize_Manager::changeset_data ()466 * @covers WP_Customize_Manager::changeset_data 467 467 */ 468 468 function test_changeset_data() { … … 540 540 * Test WP_Customize_Manager::import_theme_starter_content(). 541 541 * 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 544 544 */ 545 545 function test_import_theme_starter_content() { … … 809 809 * 810 810 * @ticket 45484 811 * @covers WP_Customize_Manager::import_theme_starter_content ()811 * @covers WP_Customize_Manager::import_theme_starter_content 812 812 */ 813 813 function test_import_theme_starter_content_with_nested_arrays() { … … 883 883 * 884 884 * @ticket 30937 885 * @covers WP_Customize_Manager::customize_preview_init ()885 * @covers WP_Customize_Manager::customize_preview_init 886 886 */ 887 887 function test_customize_preview_init() { … … 928 928 * @ticket 30937 929 929 * @ticket 40020 930 * @covers WP_Customize_Manager::filter_iframe_security_headers ()930 * @covers WP_Customize_Manager::filter_iframe_security_headers 931 931 */ 932 932 function test_filter_iframe_security_headers() { … … 943 943 * 944 944 * @ticket 30937 945 * @covers WP_Customize_Manager::add_state_query_params ()945 * @covers WP_Customize_Manager::add_state_query_params 946 946 */ 947 947 function test_add_state_query_params() { … … 1002 1002 * 1003 1003 * @ticket 30937 1004 * @covers WP_Customize_Manager::save_changeset_post ()1004 * @covers WP_Customize_Manager::save_changeset_post 1005 1005 */ 1006 1006 function test_save_changeset_post_without_theme_activation() { … … 1244 1244 * Test saving changeset post without Kses or other content_save_pre filters mutating content. 1245 1245 * 1246 * @covers WP_Customize_Manager::save_changeset_post ()1246 * @covers WP_Customize_Manager::save_changeset_post 1247 1247 */ 1248 1248 public function test_save_changeset_post_without_kses_corrupting_json() { … … 1447 1447 * 1448 1448 * @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 1451 1451 */ 1452 1452 function test_save_changeset_post_with_theme_activation() { … … 1486 1486 * 1487 1487 * @ticket 38705 1488 * @covers WP_Customize_Manager::save_changeset_post ()1488 * @covers WP_Customize_Manager::save_changeset_post 1489 1489 */ 1490 1490 function test_save_changeset_post_with_varying_users() { … … 1661 1661 * @ticket 31089 1662 1662 * @see wp_delete_auto_drafts() 1663 * @covers WP_Customize_Manager::save_changeset_post ()1663 * @covers WP_Customize_Manager::save_changeset_post 1664 1664 */ 1665 1665 function test_save_changeset_post_dumping_auto_draft_date() { … … 1701 1701 * 1702 1702 * @ticket 38865 1703 * @covers WP_Customize_Manager::save_changeset_post ()1703 * @covers WP_Customize_Manager::save_changeset_post 1704 1704 */ 1705 1705 function test_save_changeset_post_with_unchanged_values() { … … 1791 1791 * 1792 1792 * @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 1795 1795 */ 1796 1796 public function test_save_changeset_post_with_autosave() { … … 1901 1901 * 1902 1902 * @ticket 41621 1903 * @covers WP_Customize_Manager::save_changeset_post ()1903 * @covers WP_Customize_Manager::save_changeset_post 1904 1904 */ 1905 1905 function test_remove_setting_from_changeset_post() { … … 1937 1937 * 1938 1938 * @ticket 38705 1939 * @covers WP_Customize_Manager::save_changeset_post ()1939 * @covers WP_Customize_Manager::save_changeset_post 1940 1940 */ 1941 1941 function test_save_changeset_post_with_varying_unfiltered_html_cap() { … … 2007 2007 * 2008 2008 * @ticket 39221 2009 * @covers ::_wp_customize_publish_changeset ()2009 * @covers ::_wp_customize_publish_changeset 2010 2010 * @see WP_Customize_Widgets::schedule_customize_register() 2011 2011 * @see WP_Customize_Widgets::customize_register() … … 2193 2193 * 2194 2194 * @ticket 30937 2195 * @covers WP_Customize_Manager::is_cross_domain ()2195 * @covers WP_Customize_Manager::is_cross_domain 2196 2196 */ 2197 2197 function test_is_cross_domain() { … … 2211 2211 * 2212 2212 * @ticket 30937 2213 * @covers WP_Customize_Manager::get_allowed_urls ()2213 * @covers WP_Customize_Manager::get_allowed_urls 2214 2214 */ 2215 2215 function test_get_allowed_urls() { … … 2294 2294 * 2295 2295 * @ticket 30937 2296 * @covers WP_Customize_Manager::unsanitized_post_values ()2296 * @covers WP_Customize_Manager::unsanitized_post_values 2297 2297 */ 2298 2298 function test_unsanitized_post_values_with_changeset_and_stashed_theme_mods() { … … 2608 2608 * 2609 2609 * @ticket 37638 2610 * @covers WP_Customize_Manager::validate_setting_values ()2610 * @covers WP_Customize_Manager::validate_setting_values 2611 2611 */ 2612 2612 function test_late_validate_setting_values() { … … 2634 2634 * 2635 2635 * @ticket 30937 2636 * @covers WP_Customize_Manager::validate_setting_values ()2636 * @covers WP_Customize_Manager::validate_setting_values 2637 2637 */ 2638 2638 function test_validate_setting_values_args() { … … 2815 2815 * 2816 2816 * @ticket 38013 2817 * @covers WP_Customize_Manager::has_published_pages ()2817 * @covers WP_Customize_Manager::has_published_pages 2818 2818 */ 2819 2819 function test_has_published_pages() { … … 2844 2844 * 2845 2845 * @ticket 38013 2846 * @covers WP_Customize_Manager::has_published_pages ()2846 * @covers WP_Customize_Manager::has_published_pages 2847 2847 */ 2848 2848 function test_has_published_pages_when_nav_menus_created_posts() { … … 3116 3116 * 3117 3117 * @ticket 38867 3118 * @covers WP_Customize_Manager::remove_frameless_preview_messenger_channel ()3118 * @covers WP_Customize_Manager::remove_frameless_preview_messenger_channel 3119 3119 */ 3120 3120 function test_remove_frameless_preview_messenger_channel() { -
trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php
r46586 r48858 945 945 * 946 946 * @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 948 948 */ 949 949 function test_value_as_wp_post_nav_menu_item_term_urls() { … … 1018 1018 * 1019 1019 * @ticket 38945 1020 * @covers WP_Customize_Nav_Menu_Item_Setting::get_original_title ()1020 * @covers WP_Customize_Nav_Menu_Item_Setting::get_original_title 1021 1021 */ 1022 1022 function test_get_original_title() { -
trunk/tests/phpunit/tests/customize/nav-menus.php
r47747 r48858 662 662 * Test insert_auto_draft_post method. 663 663 * 664 * @covers WP_Customize_Nav_Menus::insert_auto_draft_post ()664 * @covers WP_Customize_Nav_Menus::insert_auto_draft_post 665 665 */ 666 666 public function test_insert_auto_draft_post() { … … 836 836 * Test make_auto_draft_status_previewable. 837 837 * 838 * @covers WP_Customize_Nav_Menus::make_auto_draft_status_previewable ()838 * @covers WP_Customize_Nav_Menus::make_auto_draft_status_previewable 839 839 */ 840 840 function test_make_auto_draft_status_previewable() { … … 848 848 * Test sanitize_nav_menus_created_posts. 849 849 * 850 * @covers WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts ()850 * @covers WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts 851 851 */ 852 852 function test_sanitize_nav_menus_created_posts() { … … 922 922 * Test save_nav_menus_created_posts. 923 923 * 924 * @covers WP_Customize_Nav_Menus::save_nav_menus_created_posts ()924 * @covers WP_Customize_Nav_Menus::save_nav_menus_created_posts 925 925 */ 926 926 function test_save_nav_menus_created_posts() { … … 1115 1115 * Test the filter_wp_nav_menu method. 1116 1116 * 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 1119 1119 */ 1120 1120 function test_filter_wp_nav_menu() { -
trunk/tests/phpunit/tests/dependencies/scripts.php
r48466 r48858 1046 1046 * 1047 1047 * @ticket 41871 1048 * @covers ::wp_enqueue_code_editor ()1048 * @covers ::wp_enqueue_code_editor 1049 1049 */ 1050 1050 public function test_wp_enqueue_code_editor_when_php_file_will_be_passed() { … … 1133 1133 * 1134 1134 * @ticket 41871 1135 * @covers ::wp_enqueue_code_editor ()1135 * @covers ::wp_enqueue_code_editor 1136 1136 */ 1137 1137 public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() { … … 1216 1216 * 1217 1217 * @ticket 41871 1218 * @covers ::wp_enqueue_code_editor ()1218 * @covers ::wp_enqueue_code_editor 1219 1219 */ 1220 1220 public function test_wp_enqueue_code_editor_when_generated_array_by_array_merge_will_be_passed() { … … 1313 1313 * 1314 1314 * @ticket 41871 1315 * @covers ::wp_enqueue_code_editor ()1315 * @covers ::wp_enqueue_code_editor 1316 1316 */ 1317 1317 public function test_wp_enqueue_code_editor_when_simple_array_will_be_passed() { -
trunk/tests/phpunit/tests/general/wpError.php
r46586 r48858 101 101 102 102 /** 103 * @covers ::get_error_codes ()103 * @covers ::get_error_codes 104 104 */ 105 105 public function test_get_error_codes_with_no_errors_should_return_empty_array() { … … 108 108 109 109 /** 110 * @covers ::get_error_codes ()110 * @covers ::get_error_codes 111 111 */ 112 112 public function test_get_error_codes_with_one_error_should_return_an_array_with_only_that_code() { … … 117 117 118 118 /** 119 * @covers ::get_error_codes ()119 * @covers ::get_error_codes 120 120 */ 121 121 public function test_get_error_codes_with_multiple_errors_should_return_an_array_of_those_codes() { … … 129 129 130 130 /** 131 * @covers ::get_error_code ()131 * @covers ::get_error_code 132 132 */ 133 133 public function test_get_error_code_with_no_errors_should_return_an_empty_string() { … … 136 136 137 137 /** 138 * @covers ::get_error_code ()138 * @covers ::get_error_code 139 139 */ 140 140 public function test_get_error_code_with_one_error_should_return_that_error_code() { … … 145 145 146 146 /** 147 * @covers ::get_error_code ()147 * @covers ::get_error_code 148 148 */ 149 149 public function test_get_error_code_with_multiple_errors_should_return_only_the_first_error_code() { … … 155 155 156 156 /** 157 * @covers ::get_error_messages ()157 * @covers ::get_error_messages 158 158 */ 159 159 public function test_get_error_messages_with_empty_code_and_no_errors_should_return_an_empty_array() { … … 162 162 163 163 /** 164 * @covers ::get_error_messages ()164 * @covers ::get_error_messages 165 165 */ 166 166 public function test_get_error_messages_with_empty_code_one_error_should_return_an_array_with_that_message() { … … 171 171 172 172 /** 173 * @covers ::get_error_messages ()173 * @covers ::get_error_messages 174 174 */ 175 175 public function test_get_error_messages_with_empty_code_multiple_errors_should_return_an_array_of_messages() { … … 181 181 182 182 /** 183 * @covers ::get_error_messages ()183 * @covers ::get_error_messages 184 184 */ 185 185 public function test_get_error_messages_with_an_invalid_code_should_return_an_empty_array() { … … 188 188 189 189 /** 190 * @covers ::get_error_messages ()190 * @covers ::get_error_messages 191 191 */ 192 192 public function test_get_error_messages_with_one_error_should_return_an_array_with_that_message() { … … 197 197 198 198 /** 199 * @covers ::get_error_messages ()199 * @covers ::get_error_messages 200 200 */ 201 201 public function test_get_error_messages_with_multiple_errors_same_code_should_return_an_array_with_all_messages() { … … 207 207 208 208 /** 209 * @covers ::get_error_message ()209 * @covers ::get_error_message 210 210 */ 211 211 public function test_get_error_message_with_empty_code_and_no_errors_should_return_an_empty_string() { … … 214 214 215 215 /** 216 * @covers ::get_error_message ()216 * @covers ::get_error_message 217 217 */ 218 218 public function test_get_error_message_with_empty_code_and_one_error_should_return_that_message() { … … 223 223 224 224 /** 225 * @covers ::get_error_message ()225 * @covers ::get_error_message 226 226 */ 227 227 public function test_get_error_message_with_empty_code_and_multiple_errors_should_return_the_first_message() { … … 233 233 234 234 /** 235 * @covers ::get_error_message ()235 * @covers ::get_error_message 236 236 */ 237 237 public function test_get_error_message_with_empty_code_and_multiple_errors_multiple_codes_should_return_the_first_message() { … … 244 244 245 245 /** 246 * @covers ::get_error_message ()246 * @covers ::get_error_message 247 247 */ 248 248 public function test_get_error_message_with_invalid_code_and_no_errors_should_return_empty_string() { … … 251 251 252 252 /** 253 * @covers ::get_error_message ()253 * @covers ::get_error_message 254 254 */ 255 255 public function test_get_error_message_with_invalid_code_and_one_error_should_return_an_empty_string() { … … 260 260 261 261 /** 262 * @covers ::get_error_message ()262 * @covers ::get_error_message 263 263 */ 264 264 public function test_get_error_message_with_invalid_code_and_multiple_errors_should_return_an_empty_string() { … … 270 270 271 271 /** 272 * @covers ::get_error_data ()272 * @covers ::get_error_data 273 273 */ 274 274 public function test_get_error_data_with_empty_code_and_no_errors_should_evaluate_as_null() { … … 277 277 278 278 /** 279 * @covers ::get_error_data ()279 * @covers ::get_error_data 280 280 */ 281 281 public function test_get_error_data_with_empty_code_one_error_no_data_should_evaluate_as_null() { … … 286 286 287 287 /** 288 * @covers ::get_error_data ()288 * @covers ::get_error_data 289 289 */ 290 290 public function test_get_error_data_with_empty_code_multiple_errors_no_data_should_evaluate_as_null() { … … 296 296 297 297 /** 298 * @covers ::get_error_data ()298 * @covers ::get_error_data 299 299 */ 300 300 public function test_get_error_data_with_empty_code_and_one_error_with_data_should_return_that_data() { … … 306 306 307 307 /** 308 * @covers ::get_error_data ()308 * @covers ::get_error_data 309 309 */ 310 310 public function test_get_error_data_with_empty_code_and_multiple_errors_different_codes_should_return_the_last_data_of_the_first_code() { … … 317 317 318 318 /** 319 * @covers ::get_error_data ()319 * @covers ::get_error_data 320 320 */ 321 321 public function test_get_error_data_with_empty_code_and_multiple_errors_same_code_should_return_the_last_data_of_the_first_code() { … … 328 328 329 329 /** 330 * @covers ::get_error_data ()330 * @covers ::get_error_data 331 331 */ 332 332 public function test_get_error_data_with_code_and_no_errors_should_evaluate_as_null() { … … 335 335 336 336 /** 337 * @covers ::get_error_data ()337 * @covers ::get_error_data 338 338 */ 339 339 public function test_get_error_data_with_code_and_one_error_with_no_data_should_evaluate_as_null() { … … 344 344 345 345 /** 346 * @covers ::get_error_data ()346 * @covers ::get_error_data 347 347 */ 348 348 public function test_get_error_data_with_code_and_one_error_with_data_should_return_that_data() { … … 354 354 355 355 /** 356 * @covers ::get_error_data ()356 * @covers ::get_error_data 357 357 */ 358 358 public function test_get_error_data_with_code_and_multiple_errors_different_codes_should_return_the_last_stored_data_of_the_code() { … … 366 366 367 367 /** 368 * @covers ::get_error_data ()368 * @covers ::get_error_data 369 369 */ 370 370 public function test_get_error_data_with_code_and_multiple_errors_same_code_should_return_the_last_stored_data() { … … 377 377 378 378 /** 379 * @covers ::has_errors ()379 * @covers ::has_errors 380 380 */ 381 381 public function test_has_errors_with_no_errors_returns_false() { … … 384 384 385 385 /** 386 * @covers ::has_errors ()386 * @covers ::has_errors 387 387 */ 388 388 public function test_has_errors_with_errors_returns_true() { … … 392 392 393 393 /** 394 * @covers ::add ()394 * @covers ::add 395 395 */ 396 396 public function test_add_with_empty_code_empty_message_empty_data_should_add_empty_key_to_errors_array() { … … 401 401 402 402 /** 403 * @covers ::add ()403 * @covers ::add 404 404 */ 405 405 public function test_add_with_empty_code_empty_message_empty_data_should_add_empty_message_to_errors_array_under_empty_key() { … … 410 410 411 411 /** 412 * @covers ::add ()412 * @covers ::add 413 413 */ 414 414 public function test_add_with_empty_code_empty_message_empty_data_should_not_alter_data() { … … 419 419 420 420 /** 421 * @covers ::add ()421 * @covers ::add 422 422 */ 423 423 public function test_add_with_empty_code_empty_message_non_empty_data_should_store_data_under_an_empty_code_key() { … … 428 428 429 429 /** 430 * @covers ::add ()430 * @covers ::add 431 431 */ 432 432 public function test_add_with_code_empty_message_empty_data_should_add_error_with_code() { … … 437 437 438 438 /** 439 * @covers ::add ()439 * @covers ::add 440 440 */ 441 441 public function test_add_with_code_empty_message_empty_data_should_add_error_with_empty_message() { … … 446 446 447 447 /** 448 * @covers ::add ()448 * @covers ::add 449 449 */ 450 450 public function test_add_with_code_empty_message_empty_data_should_not_add_error_data() { … … 455 455 456 456 /** 457 * @covers ::add ()457 * @covers ::add 458 458 */ 459 459 public function test_add_with_code_and_message_and_empty_data_should_should_add_error_with_that_message() { … … 464 464 465 465 /** 466 * @covers ::add ()466 * @covers ::add 467 467 */ 468 468 public function test_add_with_code_and_message_and_empty_data_should_not_alter_stored_data() { … … 473 473 474 474 /** 475 * @covers ::add ()475 * @covers ::add 476 476 */ 477 477 public function test_add_with_code_and_empty_message_and_data_should_add_error_with_that_code() { … … 482 482 483 483 /** 484 * @covers ::add ()484 * @covers ::add 485 485 */ 486 486 public function test_add_with_code_and_empty_message_and_data_should_store_that_data() { … … 491 491 492 492 /** 493 * @covers ::add ()493 * @covers ::add 494 494 */ 495 495 public function test_add_with_code_and_message_and_data_should_add_an_error_with_that_code() { … … 500 500 501 501 /** 502 * @covers ::add ()502 * @covers ::add 503 503 */ 504 504 public function test_add_with_code_and_message_and_data_should_add_an_error_with_that_message() { … … 509 509 510 510 /** 511 * @covers ::add ()511 * @covers ::add 512 512 */ 513 513 public function test_add_with_code_and_message_and_data_should_store_that_data() { … … 518 518 519 519 /** 520 * @covers ::add ()520 * @covers ::add 521 521 */ 522 522 public function test_add_multiple_times_with_the_same_code_should_add_additional_messages_for_that_code() { … … 530 530 531 531 /** 532 * @covers ::add ()532 * @covers ::add 533 533 */ 534 534 public function test_add_multiple_times_with_the_same_code_and_different_data_should_store_only_the_last_added_data() { … … 540 540 541 541 /** 542 * @covers ::add_data ()542 * @covers ::add_data 543 543 */ 544 544 public function test_add_data_with_empty_data_empty_code_should_create_orphaned_data_with_no_error() { … … 549 549 550 550 /** 551 * @covers ::add_data ()551 * @covers ::add_data 552 552 */ 553 553 public function test_add_data_with_empty_data_empty_code_no_errors_should_create_data_under_an_empty_code_key() { … … 558 558 559 559 /** 560 * @covers ::add_data ()560 * @covers ::add_data 561 561 */ 562 562 public function test_add_data_with_data_empty_code_and_one_error_should_store_the_data_under_that_code() { … … 568 568 569 569 /** 570 * @covers ::add_data ()570 * @covers ::add_data 571 571 */ 572 572 public function test_add_data_with_data_empty_code_and_multiple_errors_with_different_codes_should_store_it_under_the_first_code() { … … 580 580 581 581 /** 582 * @covers ::add_data ()582 * @covers ::add_data 583 583 */ 584 584 public function test_add_data_with_data_empty_code_and_multiple_errors_with_same_code_should_store_it_under_the_first_code() { … … 593 593 594 594 /** 595 * @covers ::add_data ()595 * @covers ::add_data 596 596 */ 597 597 public function test_add_data_with_data_and_code_and_no_errors_should_create_orphaned_data_with_no_error() { … … 602 602 603 603 /** 604 * @covers ::add_data ()604 * @covers ::add_data 605 605 */ 606 606 public function test_add_data_with_data_and_code_no_errors_should_create_data_under_that_code_key() { … … 611 611 612 612 /** 613 * @covers ::add_data ()613 * @covers ::add_data 614 614 */ 615 615 public function test_add_data_with_data_and_code_one_error_different_code_should_create_orphaned_data_with_no_error() { … … 622 622 623 623 /** 624 * @covers ::add_data ()624 * @covers ::add_data 625 625 */ 626 626 public function test_add_data_with_data_and_code_one_error_different_code_should_create_data_under_that_code_key() { … … 633 633 634 634 /** 635 * @covers ::add_data ()635 * @covers ::add_data 636 636 */ 637 637 public function test_add_data_with_data_and_code_should_add_data() { … … 644 644 645 645 /** 646 * @covers ::remove ()646 * @covers ::remove 647 647 */ 648 648 public function test_remove_with_no_errors_should_affect_nothing() { … … 657 657 658 658 /** 659 * @covers ::remove ()659 * @covers ::remove 660 660 */ 661 661 public function test_remove_empty_code_no_errors_should_affect_nothing() { … … 670 670 671 671 /** 672 * @covers ::remove ()672 * @covers ::remove 673 673 */ 674 674 public function test_remove_empty_code_and_one_error_with_empty_string_code_should_remove_error() { … … 685 685 686 686 /** 687 * @covers ::remove ()687 * @covers ::remove 688 688 */ 689 689 public function test_remove_empty_code_and_one_error_with_empty_string_code_should_remove_error_data() { … … 698 698 699 699 /** 700 * @covers ::remove ()700 * @covers ::remove 701 701 */ 702 702 public function test_remove_should_remove_the_error_with_the_given_code() { … … 709 709 710 710 /** 711 * @covers ::remove ()711 * @covers ::remove 712 712 */ 713 713 public function test_remove_should_remove_the_error_data_associated_with_the_given_code() { -
trunk/tests/phpunit/tests/post/nav-menu.php
r48439 r48858 680 680 * Test _wp_delete_customize_changeset_dependent_auto_drafts. 681 681 * 682 * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts ()682 * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts 683 683 */ 684 684 function test_wp_delete_customize_changeset_dependent_auto_drafts() { -
trunk/tests/phpunit/tests/post/types.php
r47381 r48858 69 69 /** 70 70 * @ticket 35985 71 * @covers ::register_post_type ()71 * @covers ::register_post_type 72 72 */ 73 73 function test_register_post_type_exclude_from_search_should_default_to_opposite_value_of_public() { … … 83 83 /** 84 84 * @ticket 35985 85 * @covers ::register_post_type ()85 * @covers ::register_post_type 86 86 */ 87 87 function test_register_post_type_publicly_queryable_should_default_to_value_of_public() { … … 97 97 /** 98 98 * @ticket 35985 99 * @covers ::register_post_type ()99 * @covers ::register_post_type 100 100 */ 101 101 function test_register_post_type_show_ui_should_default_to_value_of_public() { … … 111 111 /** 112 112 * @ticket 35985 113 * @covers ::register_post_type ()113 * @covers ::register_post_type 114 114 */ 115 115 function test_register_post_type_show_in_menu_should_default_to_value_of_show_ui() { … … 130 130 /** 131 131 * @ticket 35985 132 * @covers ::register_post_type ()132 * @covers ::register_post_type 133 133 */ 134 134 function test_register_post_type_show_in_nav_menus_should_default_to_value_of_public() { … … 144 144 /** 145 145 * @ticket 35985 146 * @covers ::register_post_type ()146 * @covers ::register_post_type 147 147 */ 148 148 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 259 259 * @ticket 45098 260 260 * 261 * @covers WP_REST_Block_Renderer_Controller::register_routes ()261 * @covers WP_REST_Block_Renderer_Controller::register_routes 262 262 */ 263 263 public function test_register_routes() { … … 274 274 * @ticket 45098 275 275 * 276 * @covers WP_REST_Block_Renderer_Controller::get_item ()276 * @covers WP_REST_Block_Renderer_Controller::get_item 277 277 */ 278 278 public function test_get_item_without_permissions() { … … 306 306 * @ticket 45098 307 307 * 308 * @covers WP_REST_Block_Renderer_Controller::get_item ()308 * @covers WP_REST_Block_Renderer_Controller::get_item 309 309 */ 310 310 public function test_get_item_invalid_block_name() { … … 323 323 * @ticket 45098 324 324 * 325 * @covers WP_REST_Block_Renderer_Controller::get_item ()325 * @covers WP_REST_Block_Renderer_Controller::get_item 326 326 */ 327 327 public function test_get_item_invalid_attribute() { … … 344 344 * @ticket 45098 345 345 * 346 * @covers WP_REST_Block_Renderer_Controller::get_item ()346 * @covers WP_REST_Block_Renderer_Controller::get_item 347 347 */ 348 348 public function test_get_item_unrecognized_attribute() { … … 365 365 * @ticket 45098 366 366 * 367 * @covers WP_REST_Block_Renderer_Controller::get_item ()367 * @covers WP_REST_Block_Renderer_Controller::get_item 368 368 */ 369 369 public function test_get_item_default_attributes() { … … 397 397 * @ticket 45098 398 398 * 399 * @covers WP_REST_Block_Renderer_Controller::get_item ()399 * @covers WP_REST_Block_Renderer_Controller::get_item 400 400 */ 401 401 public function test_get_item() { … … 590 590 * @ticket 45098 591 591 * 592 * @covers WP_REST_Block_Renderer_Controller::get_item_schema ()592 * @covers WP_REST_Block_Renderer_Controller::get_item_schema 593 593 */ 594 594 public function test_get_item_schema() { -
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r48275 r48858 3538 3538 * Test update_item() with same template that no longer exists. 3539 3539 * 3540 * @covers WP_REST_Posts_Controller::check_template ()3540 * @covers WP_REST_Posts_Controller::check_template 3541 3541 * @ticket 39996 3542 3542 */ -
trunk/tests/phpunit/tests/theme.php
r48190 r48858 353 353 * Test _wp_keep_alive_customize_changeset_dependent_auto_drafts. 354 354 * 355 * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts ()355 * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts 356 356 */ 357 357 function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() { -
trunk/tests/phpunit/tests/widgets.php
r48121 r48858 741 741 * Tests for when 'sidebars_widgets' theme mod is populated. 742 742 * 743 * @covers ::retrieve_widgets ()743 * @covers ::retrieve_widgets 744 744 */ 745 745 function test_retrieve_widgets_with_theme_mod() { … … 805 805 * Tests for when sidebars widgets matches registered sidebars. 806 806 * 807 * @covers ::retrieve_widgets ()807 * @covers ::retrieve_widgets 808 808 */ 809 809 function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() { … … 843 843 * Tests for when sidebars widgets doesn't match registered sidebars. 844 844 * 845 * @covers ::retrieve_widgets ()845 * @covers ::retrieve_widgets 846 846 */ 847 847 function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() { … … 937 937 * Tests for Customizer mode. 938 938 * 939 * @covers ::retrieve_widgets ()939 * @covers ::retrieve_widgets 940 940 */ 941 941 function test_retrieve_widgets_for_customizer() { … … 1009 1009 * Tests for orphaned widgets being moved into inactive widgets. 1010 1010 * 1011 * @covers ::retrieve_widgets ()1011 * @covers ::retrieve_widgets 1012 1012 */ 1013 1013 function test_retrieve_widgets_move_orphaned_widgets_to_inactive() { … … 1044 1044 * Test _wp_remove_unregistered_widgets. 1045 1045 * 1046 * @covers ::_wp_remove_unregistered_widgets ()1046 * @covers ::_wp_remove_unregistered_widgets 1047 1047 */ 1048 1048 public function test__wp_remove_unregistered_widgets() { … … 1074 1074 * Two themes with one sidebar each should just map, switching to a theme not previously-active. 1075 1075 * 1076 * @covers ::wp_map_sidebars_widgets ()1076 * @covers ::wp_map_sidebars_widgets 1077 1077 */ 1078 1078 public function test_one_sidebar_each() { … … 1094 1094 * Sidebars with the same name should map, switching to a theme not previously-active. 1095 1095 * 1096 * @covers ::wp_map_sidebars_widgets ()1096 * @covers ::wp_map_sidebars_widgets 1097 1097 */ 1098 1098 public function test_sidebars_with_same_slug() { … … 1112 1112 * Make educated guesses on theme sidebars. 1113 1113 * 1114 * @covers ::wp_map_sidebars_widgets ()1114 * @covers ::wp_map_sidebars_widgets 1115 1115 */ 1116 1116 public function test_sidebar_guessing() { … … 1135 1135 * Make sure two sidebars that fall in the same group don't get the same menu assigned. 1136 1136 * 1137 * @covers ::wp_map_sidebars_widgets ()1137 * @covers ::wp_map_sidebars_widgets 1138 1138 */ 1139 1139 public function test_sidebar_guessing_one_menu_per_group() { … … 1156 1156 * Make sure two sidebars that fall in the same group get menus assigned from the same group. 1157 1157 * 1158 * @covers ::wp_map_sidebars_widgets ()1158 * @covers ::wp_map_sidebars_widgets 1159 1159 */ 1160 1160 public function test_sidebar_guessing_one_menu_per_sidebar() { -
trunk/tests/phpunit/tests/widgets/media-audio-widget.php
r46586 r48858 86 86 * Test constructor. 87 87 * 88 * @covers WP_Widget_Media_Audio::__construct ()88 * @covers WP_Widget_Media_Audio::__construct 89 89 */ 90 90 function test_constructor() { -
trunk/tests/phpunit/tests/widgets/media-gallery-widget.php
r48464 r48858 30 30 * Test get_instance_schema method. 31 31 * 32 * @covers WP_Widget_Media_Gallery::get_instance_schema ()32 * @covers WP_Widget_Media_Gallery::get_instance_schema 33 33 */ 34 34 public function test_get_instance_schema() { … … 52 52 * Test update() method. 53 53 * 54 * @covers WP_Widget_Media_Gallery::render_media ()54 * @covers WP_Widget_Media_Gallery::render_media 55 55 */ 56 56 public function test_render_media() { … … 90 90 * Test enqueue_admin_scripts() method. 91 91 * 92 * @covers WP_Widget_Media_Gallery::enqueue_admin_scripts ()92 * @covers WP_Widget_Media_Gallery::enqueue_admin_scripts 93 93 */ 94 94 public function test_enqueue_admin_scripts() { … … 109 109 * Test update() method. 110 110 * 111 * @covers WP_Widget_Media_Gallery::update ()111 * @covers WP_Widget_Media_Gallery::update 112 112 */ 113 113 public function test_update() { … … 190 190 * Test render_control_template_scripts() method. 191 191 * 192 * @covers WP_Widget_Media_Gallery::render_control_template_scripts ()192 * @covers WP_Widget_Media_Gallery::render_control_template_scripts 193 193 */ 194 194 public function test_render_control_template_scripts() { -
trunk/tests/phpunit/tests/widgets/media-image-widget.php
r48557 r48858 93 93 * Test constructor. 94 94 * 95 * @covers WP_Widget_Media_Image::__construct ()95 * @covers WP_Widget_Media_Image::__construct 96 96 */ 97 97 function test_constructor() { -
trunk/tests/phpunit/tests/widgets/media-video-widget.php
r46586 r48858 30 30 * Test get_instance_schema method. 31 31 * 32 * @covers WP_Widget_Media_Video::get_instance_schema ()32 * @covers WP_Widget_Media_Video::get_instance_schema 33 33 */ 34 34 function test_get_instance_schema() { … … 87 87 * Test constructor. 88 88 * 89 * @covers WP_Widget_Media_Video::__construct ()89 * @covers WP_Widget_Media_Video::__construct 90 90 */ 91 91 function test_constructor() { … … 116 116 * Test get_instance_schema method. 117 117 * 118 * @covers WP_Widget_Media_Video::update ()118 * @covers WP_Widget_Media_Video::update 119 119 */ 120 120 function test_update() { … … 216 216 * Test render_media method. 217 217 * 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 220 220 */ 221 221 function test_render_media() { … … 304 304 * @global WP_Scripts $wp_scripts 305 305 * @global WP_Styles $wp_styles 306 * @covers WP_Widget_Media_Video::enqueue_preview_scripts ()306 * @covers WP_Widget_Media_Video::enqueue_preview_scripts 307 307 */ 308 308 function test_enqueue_preview_scripts() { … … 329 329 * Test enqueue_admin_scripts method. 330 330 * 331 * @covers WP_Widget_Media_Video::enqueue_admin_scripts ()331 * @covers WP_Widget_Media_Video::enqueue_admin_scripts 332 332 */ 333 333 function test_enqueue_admin_scripts() { … … 342 342 * Test render_control_template_scripts method. 343 343 * 344 * @covers WP_Widget_Media_Video::render_control_template_scripts ()344 * @covers WP_Widget_Media_Video::render_control_template_scripts 345 345 */ 346 346 function test_render_control_template_scripts() { -
trunk/tests/phpunit/tests/widgets/media-widget.php
r48464 r48858 51 51 * Test constructor. 52 52 * 53 * @covers WP_Widget_Media::__construct ()54 * @covers WP_Widget_Media::_register ()53 * @covers WP_Widget_Media::__construct 54 * @covers WP_Widget_Media::_register 55 55 */ 56 56 function test_constructor() { … … 107 107 * 108 108 * @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 111 111 */ 112 112 function test_constructor_in_customize_preview() { … … 229 229 * Test update method. 230 230 * 231 * @covers WP_Widget_Media::update ()231 * @covers WP_Widget_Media::update 232 232 */ 233 233 function test_update() { … … 315 315 * Test widget method. 316 316 * 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 319 319 */ 320 320 function test_widget() { … … 390 390 * Test form method. 391 391 * 392 * @covers WP_Widget_Media::form ()392 * @covers WP_Widget_Media::form 393 393 */ 394 394 function test_form() { … … 407 407 * Test display_media_state method. 408 408 * 409 * @covers WP_Widget_Media::display_media_state ()409 * @covers WP_Widget_Media::display_media_state 410 410 */ 411 411 function test_display_media_state() { … … 449 449 * Test enqueue_admin_scripts method. 450 450 * 451 * @covers WP_Widget_Media::enqueue_admin_scripts ()451 * @covers WP_Widget_Media::enqueue_admin_scripts 452 452 */ 453 453 function test_enqueue_admin_scripts() { … … 477 477 * Test has_content method. 478 478 * 479 * @covers WP_Widget_Media::has_content ()479 * @covers WP_Widget_Media::has_content 480 480 */ 481 481 function test_has_content() { -
trunk/tests/phpunit/tests/widgets/text-widget.php
r48121 r48858 76 76 * 77 77 * @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 80 80 */ 81 81 function test__register_in_customize_preview() {
Note: See TracChangeset
for help on using the changeset viewer.