Changeset 53571
- Timestamp:
- 06/24/2022 02:18:20 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
r53561 r53571 78 78 * @dataProvider data_ajax_load_available_items_cap_check 79 79 * 80 * @covers WP_Customize_Nav_Menus::ajax_load_available_items 81 * 80 82 * @param string $role The role we're checking caps against. 81 83 * @param array $expected_results Expected results. 82 *83 * @covers WP_Customize_Nav_Menus::ajax_load_available_items84 84 */ 85 85 public function test_ajax_load_available_items_cap_check( $role, $expected_results ) { … … 158 158 * @dataProvider data_ajax_load_available_items_error_messages 159 159 * 160 * @covers WP_Customize_Nav_Menus::ajax_load_available_items 161 * 160 162 * @param array $post_args POST args. 161 163 * @param mixed $expected_results Expected results. 162 *163 * @covers WP_Customize_Nav_Menus::ajax_load_available_items164 164 */ 165 165 public function test_ajax_load_available_items_error_messages( $post_args, $expected_results ) { … … 270 270 * @dataProvider data_ajax_load_available_items_success_status 271 271 * 272 * @covers WP_Customize_Nav_Menus::ajax_load_available_items 273 * 272 274 * @param array $post_args POST args. 273 275 * @param array $success_status Success status. 274 *275 * @covers WP_Customize_Nav_Menus::ajax_load_available_items276 276 */ 277 277 public function test_ajax_load_available_items_success_status( $post_args, $success_status ) { … … 363 363 * @dataProvider data_ajax_load_available_items_structure 364 364 * 365 * @covers WP_Customize_Nav_Menus::ajax_load_available_items 366 * 365 367 * @param array $post_args POST args. 366 *367 * @covers WP_Customize_Nav_Menus::ajax_load_available_items368 368 */ 369 369 public function test2_ajax_load_available_items_structure( $post_args ) { … … 473 473 * @dataProvider data_ajax_search_available_items_caps_check 474 474 * 475 * @covers WP_Customize_Nav_Menus::ajax_search_available_items 476 * @covers WP_Customize_Nav_Menus::search_available_items_query 477 * 475 478 * @param string $role Role. 476 479 * @param array $expected_results Expected results. 477 *478 * @covers WP_Customize_Nav_Menus::ajax_search_available_items479 * @covers WP_Customize_Nav_Menus::search_available_items_query480 480 */ 481 481 public function test_ajax_search_available_items_caps_check( $role, $expected_results ) { … … 555 555 * @dataProvider data_ajax_search_available_items_results 556 556 * 557 * @covers WP_Customize_Nav_Menus::ajax_search_available_items 558 * @covers WP_Customize_Nav_Menus::search_available_items_query 559 * 557 560 * @param array $post_args POST args. 558 561 * @param array $expected_results Expected results. 559 *560 * @covers WP_Customize_Nav_Menus::ajax_search_available_items561 * @covers WP_Customize_Nav_Menus::search_available_items_query562 562 */ 563 563 public function test_ajax_search_available_items_results( $post_args, $expected_results ) { -
trunk/tests/phpunit/tests/ajax/DeleteComment.php
r53561 r53571 58 58 * Expects test to pass. 59 59 * 60 * @param WP_Comment $comment Comment object.61 * @param string $action Action: 'trash', 'untrash', etc.62 *63 60 * @covers ::wp_ajax_delete_comment 64 61 * @covers ::_wp_ajax_delete_comment_response 62 * 63 * @param WP_Comment $comment Comment object. 64 * @param string $action Action: 'trash', 'untrash', etc. 65 65 */ 66 66 public function _test_as_admin( $comment, $action ) { … … 120 120 * Expects test to fail. 121 121 * 122 * @ param WP_Comment $comment Comment object.123 * @param string $action Action: 'trash', 'untrash', etc.124 * 125 * @ covers ::wp_ajax_delete_comment122 * @covers ::wp_ajax_delete_comment 123 * 124 * @param WP_Comment $comment Comment object. 125 * @param string $action Action: 'trash', 'untrash', etc. 126 126 */ 127 127 public function _test_as_subscriber( $comment, $action ) { … … 154 154 * Expects test to fail. 155 155 * 156 * @ param WP_Comment $comment Comment object.157 * @param string $action Action: 'trash', 'untrash', etc.158 * 159 * @ covers ::wp_ajax_delete_comment156 * @covers ::wp_ajax_delete_comment 157 * 158 * @param WP_Comment $comment Comment object. 159 * @param string $action Action: 'trash', 'untrash', etc. 160 160 */ 161 161 public function _test_with_bad_nonce( $comment, $action ) { … … 187 187 * Expects test to fail. 188 188 * 189 * @ param WP_Comment $comment Comment object.190 * @param string $action Action: 'trash', 'untrash', etc.191 * 192 * @ covers ::wp_ajax_delete_comment189 * @covers ::wp_ajax_delete_comment 190 * 191 * @param WP_Comment $comment Comment object. 192 * @param string $action Action: 'trash', 'untrash', etc. 193 193 */ 194 194 public function _test_with_bad_id( $comment, $action ) { … … 226 226 * Expects test to fail. 227 227 * 228 * @ param WP_Comment $comment Comment object.229 * @param string $action Action: 'trash', 'untrash', etc.230 * 231 * @ covers ::wp_ajax_delete_comment228 * @covers ::wp_ajax_delete_comment 229 * 230 * @param WP_Comment $comment Comment object. 231 * @param string $action Action: 'trash', 'untrash', etc. 232 232 */ 233 233 public function _test_double_action( $comment, $action ) { -
trunk/tests/phpunit/tests/formatting/redirect.php
r53562 r53571 21 21 * @dataProvider get_bad_status_codes 22 22 * 23 * @covers ::wp_redirect 24 * 23 25 * @param string $location The path or URL to redirect to. 24 26 * @param int $status HTTP response status code to use. 25 *26 * @covers ::wp_redirect27 27 */ 28 28 public function test_wp_redirect_bad_status_code( $location, $status ) {
Note: See TracChangeset
for help on using the changeset viewer.