Changeset 53561 for trunk/tests/phpunit/tests/ajax/DeleteComment.php
- Timestamp:
- 06/23/2022 07:45:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/DeleteComment.php
r51438 r53561 60 60 * @param WP_Comment $comment Comment object. 61 61 * @param string $action Action: 'trash', 'untrash', etc. 62 * 63 * @covers ::wp_ajax_delete_comment 64 * @covers ::_wp_ajax_delete_comment_response 62 65 */ 63 66 public function _test_as_admin( $comment, $action ) { … … 119 122 * @param WP_Comment $comment Comment object. 120 123 * @param string $action Action: 'trash', 'untrash', etc. 124 * 125 * @covers ::wp_ajax_delete_comment 121 126 */ 122 127 public function _test_as_subscriber( $comment, $action ) { … … 151 156 * @param WP_Comment $comment Comment object. 152 157 * @param string $action Action: 'trash', 'untrash', etc. 158 * 159 * @covers ::wp_ajax_delete_comment 153 160 */ 154 161 public function _test_with_bad_nonce( $comment, $action ) { … … 182 189 * @param WP_Comment $comment Comment object. 183 190 * @param string $action Action: 'trash', 'untrash', etc. 191 * 192 * @covers ::wp_ajax_delete_comment 184 193 */ 185 194 public function _test_with_bad_id( $comment, $action ) { … … 219 228 * @param WP_Comment $comment Comment object. 220 229 * @param string $action Action: 'trash', 'untrash', etc. 230 * 231 * @covers ::wp_ajax_delete_comment 221 232 */ 222 233 public function _test_double_action( $comment, $action ) { … … 264 275 /** 265 276 * Deletes a comment as an administrator (expects success). 277 * 278 * @covers ::wp_ajax_delete_comment 279 * @covers ::_wp_ajax_delete_comment_response 266 280 */ 267 281 public function test_ajax_comment_trash_actions_as_administrator() { … … 280 294 /** 281 295 * Deletes a comment as a subscriber (expects permission denied). 296 * 297 * @covers ::wp_ajax_delete_comment 282 298 */ 283 299 public function test_ajax_comment_trash_actions_as_subscriber() { … … 296 312 /** 297 313 * Deletes a comment with no ID. 314 * 315 * @covers ::wp_ajax_delete_comment 316 * @covers ::_wp_ajax_delete_comment_response 298 317 */ 299 318 public function test_ajax_trash_comment_no_id() { … … 312 331 /** 313 332 * Deletes a comment with a bad nonce. 333 * 334 * @covers ::wp_ajax_delete_comment 314 335 */ 315 336 public function test_ajax_trash_comment_bad_nonce() { … … 328 349 /** 329 350 * Tests trashing an already trashed comment, etc. 351 * 352 * @covers ::wp_ajax_delete_comment 330 353 */ 331 354 public function test_ajax_trash_double_action() {
Note: See TracChangeset
for help on using the changeset viewer.