Changeset 54722 for trunk/tests/phpunit/tests/ajax/wpAjaxDeleteComment.php
- Timestamp:
- 10/30/2022 01:05:06 AM (3 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/wpAjaxDeleteComment.php
r54721 r54722 9 9 * Testing Ajax comment functionality. 10 10 * 11 * @package WordPress11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 16 * 17 * @covers ::wp_ajax_delete_comment 15 18 */ 16 class Tests_Ajax_ DeleteComment extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxDeleteComment extends WP_Ajax_UnitTestCase { 17 20 18 21 /** … … 58 61 * Expects test to pass. 59 62 * 60 * @covers ::wp_ajax_delete_comment61 63 * @covers ::_wp_ajax_delete_comment_response 62 64 * … … 120 122 * Expects test to fail. 121 123 * 122 * @covers ::wp_ajax_delete_comment123 *124 124 * @param WP_Comment $comment Comment object. 125 125 * @param string $action Action: 'trash', 'untrash', etc. … … 154 154 * Expects test to fail. 155 155 * 156 * @covers ::wp_ajax_delete_comment157 *158 156 * @param WP_Comment $comment Comment object. 159 157 * @param string $action Action: 'trash', 'untrash', etc. … … 186 184 * 187 185 * Expects test to fail. 188 *189 * @covers ::wp_ajax_delete_comment190 186 * 191 187 * @param WP_Comment $comment Comment object. … … 226 222 * Expects test to fail. 227 223 * 228 * @covers ::wp_ajax_delete_comment229 *230 224 * @param WP_Comment $comment Comment object. 231 225 * @param string $action Action: 'trash', 'untrash', etc. … … 276 270 * Deletes a comment as an administrator (expects success). 277 271 * 278 * @covers ::wp_ajax_delete_comment279 272 * @covers ::_wp_ajax_delete_comment_response 280 273 */ … … 294 287 /** 295 288 * Deletes a comment as a subscriber (expects permission denied). 296 *297 * @covers ::wp_ajax_delete_comment298 289 */ 299 290 public function test_ajax_comment_trash_actions_as_subscriber() { … … 313 304 * Deletes a comment with no ID. 314 305 * 315 * @covers ::wp_ajax_delete_comment316 306 * @covers ::_wp_ajax_delete_comment_response 317 307 */ … … 331 321 /** 332 322 * Deletes a comment with a bad nonce. 333 *334 * @covers ::wp_ajax_delete_comment335 323 */ 336 324 public function test_ajax_trash_comment_bad_nonce() { … … 349 337 /** 350 338 * Tests trashing an already trashed comment, etc. 351 *352 * @covers ::wp_ajax_delete_comment353 339 */ 354 340 public function test_ajax_trash_double_action() {
Note: See TracChangeset
for help on using the changeset viewer.