Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:12:30 PM (4 years ago)
Author:
azaozz
Message:

Build/Test Tools: Add @covers tags to the comments tests.

Props pbearne, jrf, hellofromTonya, patopaiar, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/template.php

    r52010 r53863  
    2020        }
    2121
     22        /**
     23         * @covers ::get_comments_number
     24         */
    2225        public function test_get_comments_number() {
    2326                $post_id = self::$post_id;
    … …  
    3336        }
    3437
     38        /**
     39         * @covers ::get_comments_number
     40         */
    3541        public function test_get_comments_number_without_arg() {
    3642                $post_id   = self::$post_id;
    … …  
    4854        /**
    4955         * @ticket 48772
     56         *
     57         * @covers ::get_comments_number_text
    5058         */
    5159        public function test_get_comments_number_text_with_post_id() {
    … …  
    6775        /**
    6876         * @ticket 13651
     77         *
     78         * @covers ::get_comments_number_text
    6979         */
    7080        public function test_get_comments_number_text_declension_with_default_args() {
    … …  
    90100         * @ticket 13651
    91101         * @dataProvider data_get_comments_number_text_declension
     102         *
     103         * @covers ::get_comments_number_text
    92104         */
    93105        public function test_get_comments_number_text_declension_with_custom_args( $number, $input, $output ) {
Note: See TracChangeset for help on using the changeset viewer.