Changeset 53571 for trunk/tests/phpunit/tests/ajax/DeleteComment.php
- Timestamp:
- 06/24/2022 02:18:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 ) {
Note: See TracChangeset
for help on using the changeset viewer.