Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:12:30 PM (3 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/query.php

    r53291 r53863  
    1414    }
    1515
     16    /**
     17     * @covers WP_Comment_Query::query
     18     */
    1619    public function test_query() {
    1720        $c1 = self::factory()->comment->create(
     
    6063    }
    6164
     65    /**
     66     * @covers WP_Comment_Query::query
     67     */
    6268    public function test_query_post_id_0() {
    6369        $c1 = self::factory()->comment->create(
     
    8187    /**
    8288     * @ticket 12668
     89     *
     90     * @covers WP_Comment_Query::query
    8391     */
    8492    public function test_query_type_empty_string() {
     
    131139    /**
    132140     * @ticket 12668
     141     *
     142     * @covers WP_Comment_Query::query
    133143     */
    134144    public function test_query_type_comment() {
     
    179189    }
    180190
     191    /**
     192     * @covers WP_Comment_Query::query
     193     */
    181194    public function test_query_type_pingback() {
    182195        $c1 = self::factory()->comment->create(
     
    220233    }
    221234
     235    /**
     236     * @covers WP_Comment_Query::query
     237     */
    222238    public function test_query_type_trackback() {
    223239        $c1 = self::factory()->comment->create(
     
    263279    /**
    264280     * 'pings' is an alias for 'trackback' + 'pingback'.
     281     *
     282     * @covers WP_Comment_Query::query
    265283     */
    266284    public function test_query_type_pings() {
     
    315333     *
    316334     * @ticket 12668
     335     *
     336     * @covers WP_Comment_Query::query
    317337     */
    318338    public function test_type_array_comments_and_custom() {
     
    372392    /**
    373393     * @ticket 12668
     394     *
     395     * @covers WP_Comment_Query::query
    374396     */
    375397    public function test_type_not__in_array_custom() {
     
    429451    /**
    430452     * @ticket 12668
     453     *
     454     * @covers WP_Comment_Query::query
    431455     */
    432456    public function test_type__in_array_and_not_type_array_custom() {
     
    487511    /**
    488512     * @ticket 12668
     513     *
     514     * @covers WP_Comment_Query::query
    489515     */
    490516    public function test_type_array_and_type__not_in_array_custom() {
     
    545571    /**
    546572     * @ticket 12668
     573     *
     574     * @covers WP_Comment_Query::query
    547575     */
    548576    public function test_type__not_in_custom() {
     
    602630    /**
    603631     * @ticket 12668
     632     *
     633     * @covers WP_Comment_Query::query
    604634     */
    605635    public function test_type_array_comments_and_pings() {
     
    652682    /**
    653683     * @ticket 12668
     684     *
     685     * @covers WP_Comment_Query::query
    654686     */
    655687    public function test_type_array_comment_pings() {
     
    688720    /**
    689721     * @ticket 12668
     722     *
     723     * @covers WP_Comment_Query::query
    690724     */
    691725    public function test_type_array_pingback() {
     
    724758    /**
    725759     * @ticket 12668
     760     *
     761     * @covers WP_Comment_Query::query
    726762     */
    727763    public function test_type_array_custom_pingpack() {
     
    760796    /**
    761797     * @ticket 12668
     798     *
     799     * @covers WP_Comment_Query::query
    762800     */
    763801    public function test_type_array_pings() {
     
    796834    /**
    797835     * @ticket 12668
     836     *
     837     * @covers WP_Comment_Query::query
    798838     */
    799839    public function test_type_status_approved_array_comment_pings() {
     
    840880    /**
    841881     * @ticket 12668
     882     *
     883     * @covers WP_Comment_Query::query
    842884     */
    843885    public function test_type_array_trackback() {
     
    876918    /**
    877919     * @ticket 12668
     920     *
     921     * @covers WP_Comment_Query::query
    878922     */
    879923    public function test_type_array_custom_trackback() {
     
    912956    /**
    913957     * @ticket 12668
     958     *
     959     * @covers WP_Comment_Query::query
    914960     */
    915961    public function test_type_array_pings_approved() {
     
    9561002    /**
    9571003     * @ticket 29612
     1004     *
     1005     * @covers WP_Comment_Query::query
    9581006     */
    9591007    public function test_status_empty_string() {
     
    9901038    /**
    9911039     * @ticket 21101
     1040     *
     1041     * @covers WP_Comment_Query::query
    9921042     */
    9931043    public function test_status_hold() {
     
    10181068    /**
    10191069     * @ticket 21101
     1070     *
     1071     * @covers WP_Comment_Query::query
    10201072     */
    10211073    public function test_status_approve() {
     
    10441096    }
    10451097
     1098    /**
     1099     * @covers WP_Comment_Query::query
     1100     */
    10461101    public function test_status_custom() {
    10471102        $c1 = self::factory()->comment->create(
     
    10751130    }
    10761131
     1132    /**
     1133     * @covers WP_Comment_Query::query
     1134     */
    10771135    public function test_status_all() {
    10781136        $c1 = self::factory()->comment->create(
     
    11061164    }
    11071165
     1166    /**
     1167     * @covers WP_Comment_Query::query
     1168     */
    11081169    public function test_status_default_to_all() {
    11091170        $c1 = self::factory()->comment->create(
     
    11381199    /**
    11391200     * @ticket 29612
     1201     *
     1202     * @covers WP_Comment_Query::query
    11401203     */
    11411204    public function test_status_comma_any() {
     
    11721235    /**
    11731236     * @ticket 29612
     1237     *
     1238     * @covers WP_Comment_Query::query
    11741239     */
    11751240    public function test_status_comma_separated() {
     
    12061271    /**
    12071272     * @ticket 29612
     1273     *
     1274     * @covers WP_Comment_Query::query
    12081275     */
    12091276    public function test_status_array() {
     
    12401307    /**
    12411308     * @ticket 35478
     1309     *
     1310     * @covers WP_Comment_Query::__construct
    12421311     */
    12431312    public function test_multiple_post_fields_should_all_be_respected() {
     
    12851354    }
    12861355
     1356    /**
     1357     * @covers ::get_comments
     1358     */
    12871359    public function test_get_comments_for_post() {
    12881360        $limit = 5;
     
    13441416    /**
    13451417     * @ticket 21003
     1418     *
     1419     * @covers ::get_comments
    13461420     */
    13471421    public function test_orderby_meta() {
     
    14361510    /**
    14371511     * @ticket 30478
     1512     *
     1513     * @covers WP_Comment_Query::query
    14381514     */
    14391515    public function test_orderby_clause_key() {
     
    14631539    /**
    14641540     * @ticket 30478
     1541     *
     1542     * @covers WP_Comment_Query::query
    14651543     */
    14661544    public function test_orderby_clause_key_as_secondary_sort() {
     
    15071585    /**
    15081586     * @ticket 30478
     1587     *
     1588     * @covers WP_Comment_Query::query
    15091589     */
    15101590    public function test_orderby_more_than_one_clause_key() {
     
    15441624    /**
    15451625     * @ticket 32081
     1626     *
     1627     * @covers WP_Comment_Query::__construct
     1628     * @covers WP_Comment_Query::get_comments
    15461629     */
    15471630    public function test_meta_query_should_work_with_comment__in() {
     
    15701653    /**
    15711654     * @ticket 32081
     1655     *
     1656     * @covers WP_Comment_Query::__construct
     1657     * @covers WP_Comment_Query::get_comments
    15721658     */
    15731659    public function test_meta_query_should_work_with_comment__not_in() {
     
    15961682    /**
    15971683     * @ticket 27064
     1684     *
     1685     * @covers ::get_comments
    15981686     */
    15991687    public function test_get_comments_by_user() {
     
    16501738    /**
    16511739     * @ticket 35377
     1740     *
     1741     * @covers ::get_comments
    16521742     */
    16531743    public function test_get_comments_by_author_url() {
     
    16891779    /**
    16901780     * @ticket 28434
     1781     *
     1782     * @covers ::get_comments
    16911783     */
    16921784    public function test_fields_ids_query() {
     
    17251817    /**
    17261818     * @ticket 29189
     1819     *
     1820     * @covers ::get_comments
    17271821     */
    17281822    public function test_fields_comment__in() {
     
    17611855    /**
    17621856     * @ticket 29189
     1857     *
     1858     * @covers ::get_comments
    17631859     */
    17641860    public function test_fields_comment__not_in() {
     
    17971893    /**
    17981894     * @ticket 29189
     1895     *
     1896     * @covers ::get_comments
    17991897     */
    18001898    public function test_fields_post__in() {
     
    18371935    /**
    18381936     * @ticket 29189
     1937     *
     1938     * @covers ::get_comments
    18391939     */
    18401940    public function test_fields_post__not_in() {
     
    18771977    /**
    18781978     * @ticket 29885
     1979     *
     1980     * @covers ::get_comments
    18791981     */
    18801982    public function test_fields_post_author__in() {
     
    19202022    /**
    19212023     * @ticket 29885
     2024     *
     2025     * @covers ::get_comments
    19222026     */
    19232027    public function test_fields_post_author__not_in() {
     
    19632067        /**
    19642068         * @ticket 29885
     2069         *
     2070         * @covers ::get_comments
    19652071         */
    19662072    public function test_fields_author__in() {
     
    20112117        /**
    20122118         * @ticket 29885
     2119         *
     2120         * @covers ::get_comments
    20132121         */
    20142122    public function test_fields_author__not_in() {
     
    20592167    /**
    20602168     * @ticket 19623
     2169     *
     2170     * @covers ::get_comments
    20612171     */
    20622172    public function test_get_comments_with_status_all() {
     
    20902200    /**
    20912201     * @ticket 19623
     2202     *
     2203     * @covers ::get_comments
    20922204     */
    20932205    public function test_get_comments_with_include_unapproved_user_id() {
     
    21342246    /**
    21352247     * @ticket 19623
     2248     *
     2249     * @covers ::get_comments
    21362250     */
    21372251    public function test_get_comments_with_include_unapproved_user_id_array() {
     
    21852299    /**
    21862300     * @ticket 19623
     2301     *
     2302     * @covers ::get_comments
    21872303     */
    21882304    public function test_get_comments_with_include_unapproved_user_id_comma_separated() {
     
    22362352    /**
    22372353     * @ticket 19623
     2354     *
     2355     * @covers ::get_comments
    22382356     */
    22392357    public function test_get_comments_with_include_unapproved_author_email() {
     
    22862404    /**
    22872405     * @ticket 19623
     2406     *
     2407     * @covers ::get_comments
    22882408     */
    22892409    public function test_get_comments_with_include_unapproved_mixed_array() {
     
    23452465    /**
    23462466     * @ticket 19623
     2467     *
     2468     * @covers ::get_comments
    23472469     */
    23482470    public function test_get_comments_with_include_unapproved_mixed_comma_separated() {
     
    24022524    }
    24032525
     2526    /**
     2527     * @covers WP_Comment_Query::query
     2528     */
    24042529    public function test_search() {
    24052530        $c1 = self::factory()->comment->create(
     
    24772602    /**
    24782603     * @ticket 35513
     2604     *
     2605     * @covers WP_Comment_Query::query
    24792606     */
    24802607    public function test_search_false_should_be_ignored() {
     
    24902617    /**
    24912618     * @ticket 35513
     2619     *
     2620     * @covers WP_Comment_Query::query
    24922621     */
    24932622    public function test_search_null_should_be_ignored() {
     
    25032632    /**
    25042633     * @ticket 35513
     2634     *
     2635     * @covers WP_Comment_Query::query
    25052636     */
    25062637    public function test_search_empty_string_should_be_ignored() {
     
    25162647    /**
    25172648     * @ticket 35513
     2649     *
     2650     * @covers WP_Comment_Query::query
    25182651     */
    25192652    public function test_search_int_0_should_not_be_ignored() {
     
    25302663    /**
    25312664     * @ticket 35513
     2665     *
     2666     * @covers WP_Comment_Query::query
    25322667     */
    25332668    public function test_search_string_0_should_not_be_ignored() {
     
    25422677    }
    25432678
     2679    /**
     2680     * @covers WP_Comment_Query::query
     2681     */
    25442682    public function test_orderby_default() {
    25452683        global $wpdb;
     
    25512689    }
    25522690
     2691    /**
     2692     * @covers WP_Comment_Query::query
     2693     */
    25532694    public function test_orderby_single() {
    25542695        global $wpdb;
     
    25642705    }
    25652706
     2707    /**
     2708     * @covers WP_Comment_Query::query
     2709     */
    25662710    public function test_orderby_single_invalid() {
    25672711        global $wpdb;
     
    25772721    }
    25782722
     2723    /**
     2724     * @covers WP_Comment_Query::query
     2725     */
    25792726    public function test_orderby_space_separated() {
    25802727        global $wpdb;
     
    25902737    }
    25912738
     2739    /**
     2740     * @covers WP_Comment_Query::query
     2741     */
    25922742    public function test_orderby_comma_separated() {
    25932743        global $wpdb;
     
    26032753    }
    26042754
     2755    /**
     2756     * @covers WP_Comment_Query::query
     2757     */
    26052758    public function test_orderby_flat_array() {
    26062759        global $wpdb;
     
    26162769    }
    26172770
     2771    /**
     2772     * @covers WP_Comment_Query::query
     2773     */
    26182774    public function test_orderby_array_contains_invalid_item() {
    26192775        global $wpdb;
     
    26292785    }
    26302786
     2787    /**
     2788     * @covers WP_Comment_Query::query
     2789     */
    26312790    public function test_orderby_array_contains_all_invalid_items() {
    26322791        global $wpdb;
     
    26442803    /**
    26452804     * @ticket 29902
     2805     *
     2806     * @covers WP_Comment_Query::query
    26462807     */
    26472808    public function test_orderby_none() {
     
    26582819    /**
    26592820     * @ticket 29902
     2821     *
     2822     * @covers WP_Comment_Query::query
    26602823     */
    26612824    public function test_orderby_empty_array() {
     
    26722835    /**
    26732836     * @ticket 29902
     2837     *
     2838     * @covers WP_Comment_Query::query
    26742839     */
    26752840    public function test_orderby_false() {
     
    26862851    /**
    26872852     * @ticket 30478
     2853     *
     2854     * @covers WP_Comment_Query::query
    26882855     */
    26892856    public function test_orderby_array() {
     
    27072874    /**
    27082875     * @ticket 30478
     2876     *
     2877     * @covers WP_Comment_Query::query
    27092878     */
    27102879    public function test_orderby_array_should_discard_invalid_columns() {
     
    27282897    /**
    27292898     * @ticket 30478
     2899     *
     2900     * @covers WP_Comment_Query::query
    27302901     */
    27312902    public function test_orderby_array_should_convert_invalid_order_to_DESC() {
     
    27492920    /**
    27502921     * @ticket 30478
     2922     *
     2923     * @covers WP_Comment_Query::query
    27512924     */
    27522925    public function test_orderby_array_should_sort_by_comment_ID_as_fallback_and_should_inherit_order_from_comment_date_gmt() {
     
    27692942    /**
    27702943     * @ticket 30478
     2944     *
     2945     * @covers WP_Comment_Query::query
    27712946     */
    27722947    public function test_orderby_array_should_sort_by_comment_ID_as_fallback_and_should_inherit_order_from_comment_date() {
     
    27892964    /**
    27902965     * @ticket 30478
     2966     *
     2967     * @covers WP_Comment_Query::query
    27912968     */
    27922969    public function test_orderby_array_should_sort_by_comment_ID_DESC_as_fallback_when_not_sorted_by_date() {
     
    28082985    /**
    28092986     * @ticket 30478
     2987     *
     2988     * @covers WP_Comment_Query::query
    28102989     */
    28112990    public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_ASC() {
     
    28333012    /**
    28343013     * @ticket 30478
     3014     *
     3015     * @covers WP_Comment_Query::query
    28353016     */
    28363017    public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_DESC() {
     
    28583039    }
    28593040
     3041    /**
     3042     * @covers WP_Comment_Query::query
     3043     */
    28603044    public function test_meta_vars_should_be_converted_to_meta_query() {
    28613045        $q = new WP_Comment_Query();
     
    28753059    }
    28763060
     3061    /**
     3062     * @covers WP_Comment_Query::query
     3063     */
    28773064    public function test_count() {
    28783065        $c1 = self::factory()->comment->create(
     
    29013088    /**
    29023089     * @ticket 23369
     3090     *
     3091     * @covers WP_Comment_Query::query
    29033092     */
    29043093    public function test_count_with_meta_query() {
     
    29423131    /**
    29433132     * @ticket 38268
     3133     *
     3134     * @covers WP_Comment_Query::query
    29443135     */
    29453136    public function test_paged() {
     
    29883179    /**
    29893180     * @ticket 38268
     3181     *
     3182     * @covers WP_Comment_Query::query
    29903183     */
    29913184    public function test_offset_should_take_precedence_over_paged() {
     
    30343227    }
    30353228
     3229    /**
     3230     * @covers WP_Comment_Query::query
     3231     */
    30363232    public function test_post_type_single_value() {
    30373233        register_post_type( 'post-type-1' );
     
    30603256    /**
    30613257     * @ticket 20006
     3258     *
     3259     * @covers WP_Comment_Query::query
    30623260     */
    30633261    public function test_post_type_singleton_array() {
     
    30873285    /**
    30883286     * @ticket 20006
     3287     *
     3288     * @covers WP_Comment_Query::query
    30893289     */
    30903290    public function test_post_type_array() {
     
    31123312    }
    31133313
     3314    /**
     3315     *
     3316     * @covers WP_Comment_Query::query
     3317     */
    31143318    public function test_post_name_single_value() {
    31153319        $p1 = self::factory()->post->create( array( 'post_name' => 'foo' ) );
     
    31323336    /**
    31333337     * @ticket 20006
     3338     *
     3339     * @covers WP_Comment_Query::query
    31343340     */
    31353341    public function test_post_name_singleton_array() {
     
    31533359    /**
    31543360     * @ticket 20006
     3361     *
     3362     * @covers WP_Comment_Query::query
    31553363     */
    31563364    public function test_post_name_array() {
     
    31743382    }
    31753383
     3384    /**
     3385     * @covers WP_Comment_Query::query
     3386     */
    31763387    public function test_post_status_single_value() {
    31773388        $p1 = self::factory()->post->create( array( 'post_status' => 'publish' ) );
     
    31943405    /**
    31953406     * @ticket 20006
     3407     *
     3408     * @covers WP_Comment_Query::query
    31963409     */
    31973410    public function test_post_status_singleton_array() {
     
    32153428    /**
    32163429     * @ticket 20006
     3430     *
     3431     * @covers WP_Comment_Query::query
    32173432     */
    32183433    public function test_post_status_array() {
     
    32383453    /**
    32393454     * @ticket 35512
     3455     *
     3456     * @covers WP_Comment_Query::query
    32403457     */
    32413458    public function test_post_type_any_should_override_other_post_types() {
     
    32613478    /**
    32623479     * @ticket 35512
     3480     *
     3481     * @covers WP_Comment_Query::query
    32633482     */
    32643483    public function test_post_type_any_as_part_of_an_array_of_post_types() {
     
    32843503    /**
    32853504     * @ticket 35512
     3505     *
     3506     * @covers WP_Comment_Query::query
    32863507     */
    32873508    public function test_post_status_any_should_override_other_post_statuses() {
     
    33043525    /**
    33053526     * @ticket 35512
     3527     *
     3528     * @covers WP_Comment_Query::query
    33063529     */
    33073530    public function test_post_status_any_as_part_of_an_array_of_post_statuses() {
     
    33243547    /**
    33253548     * @ticket 24826
     3549     *
     3550     * @covers WP_Comment_Query::__construct
     3551     * @covers WP_Comment_Query::get_comments
    33263552     */
    33273553    public function test_comment_query_object() {
     
    33443570    /**
    33453571     * @ticket 22400
     3572     *
     3573     * @covers WP_Comment_Query::query
    33463574     */
    33473575    public function test_comment_cache_key_should_ignore_custom_params() {
     
    33753603    /**
    33763604     * @ticket 35677
     3605     *
     3606     * @covers WP_Comment_Query::__construct
    33773607     */
    33783608    public function test_cache_should_be_sensitive_to_parent__in() {
     
    33983628    /**
    33993629     * @ticket 35677
     3630     *
     3631     * @covers WP_Comment_Query::__construct
    34003632     */
    34013633    public function test_cache_should_be_sensitive_to_parent__not_in() {
     
    34213653    /**
    34223654     * @ticket 32762
     3655     *
     3656     * @covers WP_Comment_Query::__construct
    34233657     */
    34243658    public function test_it_should_be_possible_to_modify_meta_query_using_pre_get_comments_action() {
     
    34593693    /**
    34603694     * @ticket 32762
     3695     *
     3696     * @covers WP_Comment_Query::__construct
    34613697     */
    34623698    public function test_it_should_be_possible_to_modify_meta_params_using_pre_get_comments_action() {
     
    34913727    /**
    34923728     * @ticket 33882
     3729     *
     3730     * @covers WP_Comment_Query::__construct
    34933731     */
    34943732    public function test_parent__in() {
     
    35203758    /**
    35213759     * @ticket 33882
     3760     *
     3761     * @covers WP_Comment_Query::__construct
    35223762     */
    35233763    public function test_parent__in_commas() {
     
    35623802    /**
    35633803     * @ticket 33882
     3804     *
     3805     * @covers WP_Comment_Query::__construct
    35643806     */
    35653807    public function test_parent__not_in() {
     
    35923834    /**
    35933835     * @ticket 33882
     3836     *
     3837     * @covers WP_Comment_Query::__construct
    35943838     */
    35953839    public function test_parent__not_in_commas() {
     
    36353879    /**
    36363880     * @ticket 33883
     3881     *
     3882     * @covers WP_Comment_Query::__construct
    36373883     */
    36383884    public function test_orderby_comment__in() {
     
    36783924    /**
    36793925     * @ticket 8071
     3926     *
     3927     * @covers WP_Comment_Query::__construct
    36803928     */
    36813929    public function test_no_found_rows_should_default_to_true() {
     
    36953943    /**
    36963944     * @ticket 8071
     3945     *
     3946     * @covers WP_Comment_Query::__construct
    36973947     */
    36983948    public function test_should_respect_no_found_rows_true() {
     
    37133963    /**
    37143964     * @ticket 8071
     3965     *
     3966     * @covers WP_Comment_Query::__construct
    37153967     */
    37163968    public function test_should_respect_no_found_rows_false() {
     
    37313983    /**
    37323984     * @ticket 37184
     3985     *
     3986     * @covers WP_Comment_Query::__construct
    37333987     */
    37343988    public function test_found_rows_should_be_fetched_from_the_cache() {
     
    37584012    /**
    37594013     * @ticket 8071
     4014     *
     4015     * @covers WP_Comment_Query::__construct
    37604016     */
    37614017    public function test_hierarchical_should_skip_child_comments_in_offset() {
     
    38004056    /**
    38014057     * @ticket 8071
     4058     *
     4059     * @covers WP_Comment_Query::__construct
    38024060     */
    38034061    public function test_hierarchical_should_not_include_child_comments_in_number() {
     
    38404098    /**
    38414099     * @ticket 8071
     4100     *
     4101     * @covers WP_Comment_Query::__construct
    38424102     */
    38434103    public function test_hierarchical_threaded() {
     
    39184178    /**
    39194179     * @ticket 8071
     4180     *
     4181     * @covers WP_Comment_Query::__construct
    39204182     */
    39214183    public function test_hierarchical_threaded_approved() {
     
    39944256    /**
    39954257     * @ticket 35192
     4258     *
     4259     * @covers WP_Comment_Query::__construct
    39964260     */
    39974261    public function test_comment_clauses_prepend_callback_should_be_respected_when_filling_descendants() {
     
    40514315    /**
    40524316     * @ticket 35192
     4317     *
     4318     * @covers WP_Comment_Query::__construct
    40534319     */
    40544320    public function test_comment_clauses_append_callback_should_be_respected_when_filling_descendants() {
     
    41084374    /**
    41094375     * @ticket 36487
     4376     *
     4377     * @covers WP_Comment_Query::__construct
    41104378     */
    41114379    public function test_cache_should_be_hit_when_querying_descendants() {
     
    41644432    /**
    41654433     * @ticket 37696
     4434     *
     4435     * @covers WP_Comment_Query::__construct
    41664436     */
    41674437    public function test_hierarchy_should_be_filled_when_cache_is_incomplete() {
     
    42264496     * @ticket 37966
    42274497     * @ticket 37696
     4498     *
     4499     * @covers WP_Comment_Query::query
    42284500     */
    42294501    public function test_fill_hierarchy_should_disregard_offset_and_number() {
     
    42934565    /**
    42944566     * @ticket 27571
     4567     *
     4568     * @covers WP_Comment_Query::__construct
    42954569     */
    42964570    public function test_update_comment_post_cache_should_be_disabled_by_default() {
     
    43134587    /**
    43144588     * @ticket 27571
     4589     *
     4590     * @covers WP_Comment_Query::__construct
    43154591     */
    43164592    public function test_should_respect_update_comment_post_cache_true() {
     
    43344610    /**
    43354611     * @ticket 34138
     4612     *
     4613     * @covers WP_Comment_Query::__construct
    43364614     */
    43374615    public function test_comment_objects_should_be_filled_from_cache() {
     
    43624640    /**
    43634641     * @ticket 34138
     4642     *
     4643     * @covers WP_Comment_Query::__construct
    43644644     */
    43654645    public function test_comment_objects_should_be_fetched_from_database_when_suspend_cache_addition() {
     
    43814661    }
    43824662
     4663    /**
     4664     * @covers WP_Comment_Query::__construct
     4665     */
    43834666    public function test_comment_query_should_be_cached() {
    43844667        global $wpdb;
     
    44114694    }
    44124695
     4696    /**
     4697     * @covers WP_Comment_Query::__construct
     4698     */
    44134699    public function test_created_comment_should_invalidate_query_cache() {
    44144700        global $wpdb;
     
    44414727    }
    44424728
     4729    /**
     4730     * @covers WP_Comment_Query::__construct
     4731     */
    44434732    public function test_updated_comment_should_invalidate_query_cache() {
    44444733        global $wpdb;
     
    44814770    }
    44824771
     4772    /**
     4773     * @covers WP_Comment_Query::__construct
     4774     */
    44834775    public function test_deleted_comment_should_invalidate_query_cache() {
    44844776        global $wpdb;
     
    45144806    }
    45154807
     4808    /**
     4809     * @covers WP_Comment_Query::__construct
     4810     */
    45164811    public function test_trashed_comment_should_invalidate_query_cache() {
    45174812        global $wpdb;
     
    45474842    }
    45484843
     4844    /**
     4845     * @covers WP_Comment_Query::__construct
     4846     */
    45494847    public function test_untrashed_comment_should_invalidate_query_cache() {
    45504848        global $wpdb;
     
    45824880    }
    45834881
     4882    /**
     4883     * @covers WP_Comment_Query::__construct
     4884     */
    45844885    public function test_spammed_comment_should_invalidate_query_cache() {
    45854886        global $wpdb;
     
    46154916    }
    46164917
     4918    /**
     4919     * @covers WP_Comment_Query::__construct
     4920     */
    46174921    public function test_unspammed_comment_should_invalidate_query_cache() {
    46184922        global $wpdb;
     
    46524956    /**
    46534957     * @ticket 41348
     4958     *
     4959     * @covers WP_Comment_Query::query
    46544960     */
    46554961    public function test_count_query_should_miss_noncount_cache() {
     
    46814987    /**
    46824988     * @ticket 41348
     4989     *
     4990     * @covers WP_Comment_Query::query
    46834991     */
    46844992    public function test_count_query_should_hit_count_cache() {
     
    47105018    /**
    47115019     * @ticket 41348
     5020     *
     5021     * @covers WP_Comment_Query::query
    47125022     */
    47135023    public function test_different_values_of_fields_should_share_cached_values() {
     
    47385048    /**
    47395049     * @ticket 40669
     5050     *
     5051     * @covers ::get_comments
    47405052     */
    47415053    public function test_add_comment_meta_should_invalidate_query_cache() {
     
    47875099    /**
    47885100     * @ticket 40669
     5101     *
     5102     * @covers ::get_comments
    47895103     */
    47905104    public function test_update_comment_meta_should_invalidate_query_cache() {
     
    48365150    /**
    48375151     * @ticket 40669
     5152     *
     5153     * @covers ::get_comments
    48385154     */
    48395155    public function test_delete_comment_meta_should_invalidate_query_cache() {
     
    48855201    /**
    48865202     * @ticket 45800
     5203     *
     5204     * @covers WP_Comment_Query::query
    48875205     */
    48885206    public function test_comments_pre_query_filter_should_bypass_database_query() {
     
    49165234    /**
    49175235     * @ticket 50521
     5236     *
     5237     * @covers WP_Comment_Query::query
    49185238     */
    49195239    public function test_comments_pre_query_filter_should_set_comments_property() {
     
    49455265    /**
    49465266     * @ticket 55460
     5267     *
     5268     * @covers WP_Comment_Query::__construct
    49475269     */
    49485270    public function test_comment_cache_key_should_ignore_unset_params() {
     
    49725294    /**
    49735295     * @ticket 55218
     5296     *
     5297     * @covers WP_Comment_Query::__construct
    49745298     */
    49755299    public function test_unapproved_comment_with_meta_query_does_not_trigger_ambiguous_identifier_error() {
Note: See TracChangeset for help on using the changeset viewer.