Make WordPress Core


Ignore:
Timestamp:
06/23/2022 07:45:24 PM (4 years ago)
Author:
azaozz
Message:

Build/Test Tools: Add missing @covers tags for the AJAX test group.

Props pbeane, hellofromTonya, antonvlasenko, ironprogrammer, SergeyBiryukov, costdev.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/DeleteComment.php

    r51438 r53561  
    6060         * @param WP_Comment $comment Comment object.
    6161         * @param string     $action  Action: 'trash', 'untrash', etc.
     62         *
     63         * @covers ::wp_ajax_delete_comment
     64         * @covers ::_wp_ajax_delete_comment_response
    6265         */
    6366        public function _test_as_admin( $comment, $action ) {
    … …  
    119122         * @param WP_Comment $comment Comment object.
    120123         * @param string     $action  Action: 'trash', 'untrash', etc.
     124         *
     125         * @covers ::wp_ajax_delete_comment
    121126         */
    122127        public function _test_as_subscriber( $comment, $action ) {
    … …  
    151156         * @param WP_Comment $comment Comment object.
    152157         * @param string     $action  Action: 'trash', 'untrash', etc.
     158         *
     159         * @covers ::wp_ajax_delete_comment
    153160         */
    154161        public function _test_with_bad_nonce( $comment, $action ) {
    … …  
    182189         * @param WP_Comment $comment Comment object.
    183190         * @param string     $action  Action: 'trash', 'untrash', etc.
     191         *
     192         * @covers ::wp_ajax_delete_comment
    184193         */
    185194        public function _test_with_bad_id( $comment, $action ) {
    … …  
    219228         * @param WP_Comment $comment Comment object.
    220229         * @param string     $action  Action: 'trash', 'untrash', etc.
     230         *
     231         * @covers ::wp_ajax_delete_comment
    221232         */
    222233        public function _test_double_action( $comment, $action ) {
    … …  
    264275        /**
    265276         * Deletes a comment as an administrator (expects success).
     277         *
     278         * @covers ::wp_ajax_delete_comment
     279         * @covers ::_wp_ajax_delete_comment_response
    266280         */
    267281        public function test_ajax_comment_trash_actions_as_administrator() {
    … …  
    280294        /**
    281295         * Deletes a comment as a subscriber (expects permission denied).
     296         *
     297         * @covers ::wp_ajax_delete_comment
    282298         */
    283299        public function test_ajax_comment_trash_actions_as_subscriber() {
    … …  
    296312        /**
    297313         * Deletes a comment with no ID.
     314         *
     315         * @covers ::wp_ajax_delete_comment
     316         * @covers ::_wp_ajax_delete_comment_response
    298317         */
    299318        public function test_ajax_trash_comment_no_id() {
    … …  
    312331        /**
    313332         * Deletes a comment with a bad nonce.
     333         *
     334         * @covers ::wp_ajax_delete_comment
    314335         */
    315336        public function test_ajax_trash_comment_bad_nonce() {
    … …  
    328349        /**
    329350         * Tests trashing an already trashed comment, etc.
     351         *
     352         * @covers ::wp_ajax_delete_comment
    330353         */
    331354        public function test_ajax_trash_double_action() {
Note: See TracChangeset for help on using the changeset viewer.