Changeset 53863 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 08/08/2022 11:12:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r53291 r53863 14 14 } 15 15 16 /** 17 * @covers WP_Comment_Query::query 18 */ 16 19 public function test_query() { 17 20 $c1 = self::factory()->comment->create( … … 60 63 } 61 64 65 /** 66 * @covers WP_Comment_Query::query 67 */ 62 68 public function test_query_post_id_0() { 63 69 $c1 = self::factory()->comment->create( … … 81 87 /** 82 88 * @ticket 12668 89 * 90 * @covers WP_Comment_Query::query 83 91 */ 84 92 public function test_query_type_empty_string() { … … 131 139 /** 132 140 * @ticket 12668 141 * 142 * @covers WP_Comment_Query::query 133 143 */ 134 144 public function test_query_type_comment() { … … 179 189 } 180 190 191 /** 192 * @covers WP_Comment_Query::query 193 */ 181 194 public function test_query_type_pingback() { 182 195 $c1 = self::factory()->comment->create( … … 220 233 } 221 234 235 /** 236 * @covers WP_Comment_Query::query 237 */ 222 238 public function test_query_type_trackback() { 223 239 $c1 = self::factory()->comment->create( … … 263 279 /** 264 280 * 'pings' is an alias for 'trackback' + 'pingback'. 281 * 282 * @covers WP_Comment_Query::query 265 283 */ 266 284 public function test_query_type_pings() { … … 315 333 * 316 334 * @ticket 12668 335 * 336 * @covers WP_Comment_Query::query 317 337 */ 318 338 public function test_type_array_comments_and_custom() { … … 372 392 /** 373 393 * @ticket 12668 394 * 395 * @covers WP_Comment_Query::query 374 396 */ 375 397 public function test_type_not__in_array_custom() { … … 429 451 /** 430 452 * @ticket 12668 453 * 454 * @covers WP_Comment_Query::query 431 455 */ 432 456 public function test_type__in_array_and_not_type_array_custom() { … … 487 511 /** 488 512 * @ticket 12668 513 * 514 * @covers WP_Comment_Query::query 489 515 */ 490 516 public function test_type_array_and_type__not_in_array_custom() { … … 545 571 /** 546 572 * @ticket 12668 573 * 574 * @covers WP_Comment_Query::query 547 575 */ 548 576 public function test_type__not_in_custom() { … … 602 630 /** 603 631 * @ticket 12668 632 * 633 * @covers WP_Comment_Query::query 604 634 */ 605 635 public function test_type_array_comments_and_pings() { … … 652 682 /** 653 683 * @ticket 12668 684 * 685 * @covers WP_Comment_Query::query 654 686 */ 655 687 public function test_type_array_comment_pings() { … … 688 720 /** 689 721 * @ticket 12668 722 * 723 * @covers WP_Comment_Query::query 690 724 */ 691 725 public function test_type_array_pingback() { … … 724 758 /** 725 759 * @ticket 12668 760 * 761 * @covers WP_Comment_Query::query 726 762 */ 727 763 public function test_type_array_custom_pingpack() { … … 760 796 /** 761 797 * @ticket 12668 798 * 799 * @covers WP_Comment_Query::query 762 800 */ 763 801 public function test_type_array_pings() { … … 796 834 /** 797 835 * @ticket 12668 836 * 837 * @covers WP_Comment_Query::query 798 838 */ 799 839 public function test_type_status_approved_array_comment_pings() { … … 840 880 /** 841 881 * @ticket 12668 882 * 883 * @covers WP_Comment_Query::query 842 884 */ 843 885 public function test_type_array_trackback() { … … 876 918 /** 877 919 * @ticket 12668 920 * 921 * @covers WP_Comment_Query::query 878 922 */ 879 923 public function test_type_array_custom_trackback() { … … 912 956 /** 913 957 * @ticket 12668 958 * 959 * @covers WP_Comment_Query::query 914 960 */ 915 961 public function test_type_array_pings_approved() { … … 956 1002 /** 957 1003 * @ticket 29612 1004 * 1005 * @covers WP_Comment_Query::query 958 1006 */ 959 1007 public function test_status_empty_string() { … … 990 1038 /** 991 1039 * @ticket 21101 1040 * 1041 * @covers WP_Comment_Query::query 992 1042 */ 993 1043 public function test_status_hold() { … … 1018 1068 /** 1019 1069 * @ticket 21101 1070 * 1071 * @covers WP_Comment_Query::query 1020 1072 */ 1021 1073 public function test_status_approve() { … … 1044 1096 } 1045 1097 1098 /** 1099 * @covers WP_Comment_Query::query 1100 */ 1046 1101 public function test_status_custom() { 1047 1102 $c1 = self::factory()->comment->create( … … 1075 1130 } 1076 1131 1132 /** 1133 * @covers WP_Comment_Query::query 1134 */ 1077 1135 public function test_status_all() { 1078 1136 $c1 = self::factory()->comment->create( … … 1106 1164 } 1107 1165 1166 /** 1167 * @covers WP_Comment_Query::query 1168 */ 1108 1169 public function test_status_default_to_all() { 1109 1170 $c1 = self::factory()->comment->create( … … 1138 1199 /** 1139 1200 * @ticket 29612 1201 * 1202 * @covers WP_Comment_Query::query 1140 1203 */ 1141 1204 public function test_status_comma_any() { … … 1172 1235 /** 1173 1236 * @ticket 29612 1237 * 1238 * @covers WP_Comment_Query::query 1174 1239 */ 1175 1240 public function test_status_comma_separated() { … … 1206 1271 /** 1207 1272 * @ticket 29612 1273 * 1274 * @covers WP_Comment_Query::query 1208 1275 */ 1209 1276 public function test_status_array() { … … 1240 1307 /** 1241 1308 * @ticket 35478 1309 * 1310 * @covers WP_Comment_Query::__construct 1242 1311 */ 1243 1312 public function test_multiple_post_fields_should_all_be_respected() { … … 1285 1354 } 1286 1355 1356 /** 1357 * @covers ::get_comments 1358 */ 1287 1359 public function test_get_comments_for_post() { 1288 1360 $limit = 5; … … 1344 1416 /** 1345 1417 * @ticket 21003 1418 * 1419 * @covers ::get_comments 1346 1420 */ 1347 1421 public function test_orderby_meta() { … … 1436 1510 /** 1437 1511 * @ticket 30478 1512 * 1513 * @covers WP_Comment_Query::query 1438 1514 */ 1439 1515 public function test_orderby_clause_key() { … … 1463 1539 /** 1464 1540 * @ticket 30478 1541 * 1542 * @covers WP_Comment_Query::query 1465 1543 */ 1466 1544 public function test_orderby_clause_key_as_secondary_sort() { … … 1507 1585 /** 1508 1586 * @ticket 30478 1587 * 1588 * @covers WP_Comment_Query::query 1509 1589 */ 1510 1590 public function test_orderby_more_than_one_clause_key() { … … 1544 1624 /** 1545 1625 * @ticket 32081 1626 * 1627 * @covers WP_Comment_Query::__construct 1628 * @covers WP_Comment_Query::get_comments 1546 1629 */ 1547 1630 public function test_meta_query_should_work_with_comment__in() { … … 1570 1653 /** 1571 1654 * @ticket 32081 1655 * 1656 * @covers WP_Comment_Query::__construct 1657 * @covers WP_Comment_Query::get_comments 1572 1658 */ 1573 1659 public function test_meta_query_should_work_with_comment__not_in() { … … 1596 1682 /** 1597 1683 * @ticket 27064 1684 * 1685 * @covers ::get_comments 1598 1686 */ 1599 1687 public function test_get_comments_by_user() { … … 1650 1738 /** 1651 1739 * @ticket 35377 1740 * 1741 * @covers ::get_comments 1652 1742 */ 1653 1743 public function test_get_comments_by_author_url() { … … 1689 1779 /** 1690 1780 * @ticket 28434 1781 * 1782 * @covers ::get_comments 1691 1783 */ 1692 1784 public function test_fields_ids_query() { … … 1725 1817 /** 1726 1818 * @ticket 29189 1819 * 1820 * @covers ::get_comments 1727 1821 */ 1728 1822 public function test_fields_comment__in() { … … 1761 1855 /** 1762 1856 * @ticket 29189 1857 * 1858 * @covers ::get_comments 1763 1859 */ 1764 1860 public function test_fields_comment__not_in() { … … 1797 1893 /** 1798 1894 * @ticket 29189 1895 * 1896 * @covers ::get_comments 1799 1897 */ 1800 1898 public function test_fields_post__in() { … … 1837 1935 /** 1838 1936 * @ticket 29189 1937 * 1938 * @covers ::get_comments 1839 1939 */ 1840 1940 public function test_fields_post__not_in() { … … 1877 1977 /** 1878 1978 * @ticket 29885 1979 * 1980 * @covers ::get_comments 1879 1981 */ 1880 1982 public function test_fields_post_author__in() { … … 1920 2022 /** 1921 2023 * @ticket 29885 2024 * 2025 * @covers ::get_comments 1922 2026 */ 1923 2027 public function test_fields_post_author__not_in() { … … 1963 2067 /** 1964 2068 * @ticket 29885 2069 * 2070 * @covers ::get_comments 1965 2071 */ 1966 2072 public function test_fields_author__in() { … … 2011 2117 /** 2012 2118 * @ticket 29885 2119 * 2120 * @covers ::get_comments 2013 2121 */ 2014 2122 public function test_fields_author__not_in() { … … 2059 2167 /** 2060 2168 * @ticket 19623 2169 * 2170 * @covers ::get_comments 2061 2171 */ 2062 2172 public function test_get_comments_with_status_all() { … … 2090 2200 /** 2091 2201 * @ticket 19623 2202 * 2203 * @covers ::get_comments 2092 2204 */ 2093 2205 public function test_get_comments_with_include_unapproved_user_id() { … … 2134 2246 /** 2135 2247 * @ticket 19623 2248 * 2249 * @covers ::get_comments 2136 2250 */ 2137 2251 public function test_get_comments_with_include_unapproved_user_id_array() { … … 2185 2299 /** 2186 2300 * @ticket 19623 2301 * 2302 * @covers ::get_comments 2187 2303 */ 2188 2304 public function test_get_comments_with_include_unapproved_user_id_comma_separated() { … … 2236 2352 /** 2237 2353 * @ticket 19623 2354 * 2355 * @covers ::get_comments 2238 2356 */ 2239 2357 public function test_get_comments_with_include_unapproved_author_email() { … … 2286 2404 /** 2287 2405 * @ticket 19623 2406 * 2407 * @covers ::get_comments 2288 2408 */ 2289 2409 public function test_get_comments_with_include_unapproved_mixed_array() { … … 2345 2465 /** 2346 2466 * @ticket 19623 2467 * 2468 * @covers ::get_comments 2347 2469 */ 2348 2470 public function test_get_comments_with_include_unapproved_mixed_comma_separated() { … … 2402 2524 } 2403 2525 2526 /** 2527 * @covers WP_Comment_Query::query 2528 */ 2404 2529 public function test_search() { 2405 2530 $c1 = self::factory()->comment->create( … … 2477 2602 /** 2478 2603 * @ticket 35513 2604 * 2605 * @covers WP_Comment_Query::query 2479 2606 */ 2480 2607 public function test_search_false_should_be_ignored() { … … 2490 2617 /** 2491 2618 * @ticket 35513 2619 * 2620 * @covers WP_Comment_Query::query 2492 2621 */ 2493 2622 public function test_search_null_should_be_ignored() { … … 2503 2632 /** 2504 2633 * @ticket 35513 2634 * 2635 * @covers WP_Comment_Query::query 2505 2636 */ 2506 2637 public function test_search_empty_string_should_be_ignored() { … … 2516 2647 /** 2517 2648 * @ticket 35513 2649 * 2650 * @covers WP_Comment_Query::query 2518 2651 */ 2519 2652 public function test_search_int_0_should_not_be_ignored() { … … 2530 2663 /** 2531 2664 * @ticket 35513 2665 * 2666 * @covers WP_Comment_Query::query 2532 2667 */ 2533 2668 public function test_search_string_0_should_not_be_ignored() { … … 2542 2677 } 2543 2678 2679 /** 2680 * @covers WP_Comment_Query::query 2681 */ 2544 2682 public function test_orderby_default() { 2545 2683 global $wpdb; … … 2551 2689 } 2552 2690 2691 /** 2692 * @covers WP_Comment_Query::query 2693 */ 2553 2694 public function test_orderby_single() { 2554 2695 global $wpdb; … … 2564 2705 } 2565 2706 2707 /** 2708 * @covers WP_Comment_Query::query 2709 */ 2566 2710 public function test_orderby_single_invalid() { 2567 2711 global $wpdb; … … 2577 2721 } 2578 2722 2723 /** 2724 * @covers WP_Comment_Query::query 2725 */ 2579 2726 public function test_orderby_space_separated() { 2580 2727 global $wpdb; … … 2590 2737 } 2591 2738 2739 /** 2740 * @covers WP_Comment_Query::query 2741 */ 2592 2742 public function test_orderby_comma_separated() { 2593 2743 global $wpdb; … … 2603 2753 } 2604 2754 2755 /** 2756 * @covers WP_Comment_Query::query 2757 */ 2605 2758 public function test_orderby_flat_array() { 2606 2759 global $wpdb; … … 2616 2769 } 2617 2770 2771 /** 2772 * @covers WP_Comment_Query::query 2773 */ 2618 2774 public function test_orderby_array_contains_invalid_item() { 2619 2775 global $wpdb; … … 2629 2785 } 2630 2786 2787 /** 2788 * @covers WP_Comment_Query::query 2789 */ 2631 2790 public function test_orderby_array_contains_all_invalid_items() { 2632 2791 global $wpdb; … … 2644 2803 /** 2645 2804 * @ticket 29902 2805 * 2806 * @covers WP_Comment_Query::query 2646 2807 */ 2647 2808 public function test_orderby_none() { … … 2658 2819 /** 2659 2820 * @ticket 29902 2821 * 2822 * @covers WP_Comment_Query::query 2660 2823 */ 2661 2824 public function test_orderby_empty_array() { … … 2672 2835 /** 2673 2836 * @ticket 29902 2837 * 2838 * @covers WP_Comment_Query::query 2674 2839 */ 2675 2840 public function test_orderby_false() { … … 2686 2851 /** 2687 2852 * @ticket 30478 2853 * 2854 * @covers WP_Comment_Query::query 2688 2855 */ 2689 2856 public function test_orderby_array() { … … 2707 2874 /** 2708 2875 * @ticket 30478 2876 * 2877 * @covers WP_Comment_Query::query 2709 2878 */ 2710 2879 public function test_orderby_array_should_discard_invalid_columns() { … … 2728 2897 /** 2729 2898 * @ticket 30478 2899 * 2900 * @covers WP_Comment_Query::query 2730 2901 */ 2731 2902 public function test_orderby_array_should_convert_invalid_order_to_DESC() { … … 2749 2920 /** 2750 2921 * @ticket 30478 2922 * 2923 * @covers WP_Comment_Query::query 2751 2924 */ 2752 2925 public function test_orderby_array_should_sort_by_comment_ID_as_fallback_and_should_inherit_order_from_comment_date_gmt() { … … 2769 2942 /** 2770 2943 * @ticket 30478 2944 * 2945 * @covers WP_Comment_Query::query 2771 2946 */ 2772 2947 public function test_orderby_array_should_sort_by_comment_ID_as_fallback_and_should_inherit_order_from_comment_date() { … … 2789 2964 /** 2790 2965 * @ticket 30478 2966 * 2967 * @covers WP_Comment_Query::query 2791 2968 */ 2792 2969 public function test_orderby_array_should_sort_by_comment_ID_DESC_as_fallback_when_not_sorted_by_date() { … … 2808 2985 /** 2809 2986 * @ticket 30478 2987 * 2988 * @covers WP_Comment_Query::query 2810 2989 */ 2811 2990 public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_ASC() { … … 2833 3012 /** 2834 3013 * @ticket 30478 3014 * 3015 * @covers WP_Comment_Query::query 2835 3016 */ 2836 3017 public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_DESC() { … … 2858 3039 } 2859 3040 3041 /** 3042 * @covers WP_Comment_Query::query 3043 */ 2860 3044 public function test_meta_vars_should_be_converted_to_meta_query() { 2861 3045 $q = new WP_Comment_Query(); … … 2875 3059 } 2876 3060 3061 /** 3062 * @covers WP_Comment_Query::query 3063 */ 2877 3064 public function test_count() { 2878 3065 $c1 = self::factory()->comment->create( … … 2901 3088 /** 2902 3089 * @ticket 23369 3090 * 3091 * @covers WP_Comment_Query::query 2903 3092 */ 2904 3093 public function test_count_with_meta_query() { … … 2942 3131 /** 2943 3132 * @ticket 38268 3133 * 3134 * @covers WP_Comment_Query::query 2944 3135 */ 2945 3136 public function test_paged() { … … 2988 3179 /** 2989 3180 * @ticket 38268 3181 * 3182 * @covers WP_Comment_Query::query 2990 3183 */ 2991 3184 public function test_offset_should_take_precedence_over_paged() { … … 3034 3227 } 3035 3228 3229 /** 3230 * @covers WP_Comment_Query::query 3231 */ 3036 3232 public function test_post_type_single_value() { 3037 3233 register_post_type( 'post-type-1' ); … … 3060 3256 /** 3061 3257 * @ticket 20006 3258 * 3259 * @covers WP_Comment_Query::query 3062 3260 */ 3063 3261 public function test_post_type_singleton_array() { … … 3087 3285 /** 3088 3286 * @ticket 20006 3287 * 3288 * @covers WP_Comment_Query::query 3089 3289 */ 3090 3290 public function test_post_type_array() { … … 3112 3312 } 3113 3313 3314 /** 3315 * 3316 * @covers WP_Comment_Query::query 3317 */ 3114 3318 public function test_post_name_single_value() { 3115 3319 $p1 = self::factory()->post->create( array( 'post_name' => 'foo' ) ); … … 3132 3336 /** 3133 3337 * @ticket 20006 3338 * 3339 * @covers WP_Comment_Query::query 3134 3340 */ 3135 3341 public function test_post_name_singleton_array() { … … 3153 3359 /** 3154 3360 * @ticket 20006 3361 * 3362 * @covers WP_Comment_Query::query 3155 3363 */ 3156 3364 public function test_post_name_array() { … … 3174 3382 } 3175 3383 3384 /** 3385 * @covers WP_Comment_Query::query 3386 */ 3176 3387 public function test_post_status_single_value() { 3177 3388 $p1 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); … … 3194 3405 /** 3195 3406 * @ticket 20006 3407 * 3408 * @covers WP_Comment_Query::query 3196 3409 */ 3197 3410 public function test_post_status_singleton_array() { … … 3215 3428 /** 3216 3429 * @ticket 20006 3430 * 3431 * @covers WP_Comment_Query::query 3217 3432 */ 3218 3433 public function test_post_status_array() { … … 3238 3453 /** 3239 3454 * @ticket 35512 3455 * 3456 * @covers WP_Comment_Query::query 3240 3457 */ 3241 3458 public function test_post_type_any_should_override_other_post_types() { … … 3261 3478 /** 3262 3479 * @ticket 35512 3480 * 3481 * @covers WP_Comment_Query::query 3263 3482 */ 3264 3483 public function test_post_type_any_as_part_of_an_array_of_post_types() { … … 3284 3503 /** 3285 3504 * @ticket 35512 3505 * 3506 * @covers WP_Comment_Query::query 3286 3507 */ 3287 3508 public function test_post_status_any_should_override_other_post_statuses() { … … 3304 3525 /** 3305 3526 * @ticket 35512 3527 * 3528 * @covers WP_Comment_Query::query 3306 3529 */ 3307 3530 public function test_post_status_any_as_part_of_an_array_of_post_statuses() { … … 3324 3547 /** 3325 3548 * @ticket 24826 3549 * 3550 * @covers WP_Comment_Query::__construct 3551 * @covers WP_Comment_Query::get_comments 3326 3552 */ 3327 3553 public function test_comment_query_object() { … … 3344 3570 /** 3345 3571 * @ticket 22400 3572 * 3573 * @covers WP_Comment_Query::query 3346 3574 */ 3347 3575 public function test_comment_cache_key_should_ignore_custom_params() { … … 3375 3603 /** 3376 3604 * @ticket 35677 3605 * 3606 * @covers WP_Comment_Query::__construct 3377 3607 */ 3378 3608 public function test_cache_should_be_sensitive_to_parent__in() { … … 3398 3628 /** 3399 3629 * @ticket 35677 3630 * 3631 * @covers WP_Comment_Query::__construct 3400 3632 */ 3401 3633 public function test_cache_should_be_sensitive_to_parent__not_in() { … … 3421 3653 /** 3422 3654 * @ticket 32762 3655 * 3656 * @covers WP_Comment_Query::__construct 3423 3657 */ 3424 3658 public function test_it_should_be_possible_to_modify_meta_query_using_pre_get_comments_action() { … … 3459 3693 /** 3460 3694 * @ticket 32762 3695 * 3696 * @covers WP_Comment_Query::__construct 3461 3697 */ 3462 3698 public function test_it_should_be_possible_to_modify_meta_params_using_pre_get_comments_action() { … … 3491 3727 /** 3492 3728 * @ticket 33882 3729 * 3730 * @covers WP_Comment_Query::__construct 3493 3731 */ 3494 3732 public function test_parent__in() { … … 3520 3758 /** 3521 3759 * @ticket 33882 3760 * 3761 * @covers WP_Comment_Query::__construct 3522 3762 */ 3523 3763 public function test_parent__in_commas() { … … 3562 3802 /** 3563 3803 * @ticket 33882 3804 * 3805 * @covers WP_Comment_Query::__construct 3564 3806 */ 3565 3807 public function test_parent__not_in() { … … 3592 3834 /** 3593 3835 * @ticket 33882 3836 * 3837 * @covers WP_Comment_Query::__construct 3594 3838 */ 3595 3839 public function test_parent__not_in_commas() { … … 3635 3879 /** 3636 3880 * @ticket 33883 3881 * 3882 * @covers WP_Comment_Query::__construct 3637 3883 */ 3638 3884 public function test_orderby_comment__in() { … … 3678 3924 /** 3679 3925 * @ticket 8071 3926 * 3927 * @covers WP_Comment_Query::__construct 3680 3928 */ 3681 3929 public function test_no_found_rows_should_default_to_true() { … … 3695 3943 /** 3696 3944 * @ticket 8071 3945 * 3946 * @covers WP_Comment_Query::__construct 3697 3947 */ 3698 3948 public function test_should_respect_no_found_rows_true() { … … 3713 3963 /** 3714 3964 * @ticket 8071 3965 * 3966 * @covers WP_Comment_Query::__construct 3715 3967 */ 3716 3968 public function test_should_respect_no_found_rows_false() { … … 3731 3983 /** 3732 3984 * @ticket 37184 3985 * 3986 * @covers WP_Comment_Query::__construct 3733 3987 */ 3734 3988 public function test_found_rows_should_be_fetched_from_the_cache() { … … 3758 4012 /** 3759 4013 * @ticket 8071 4014 * 4015 * @covers WP_Comment_Query::__construct 3760 4016 */ 3761 4017 public function test_hierarchical_should_skip_child_comments_in_offset() { … … 3800 4056 /** 3801 4057 * @ticket 8071 4058 * 4059 * @covers WP_Comment_Query::__construct 3802 4060 */ 3803 4061 public function test_hierarchical_should_not_include_child_comments_in_number() { … … 3840 4098 /** 3841 4099 * @ticket 8071 4100 * 4101 * @covers WP_Comment_Query::__construct 3842 4102 */ 3843 4103 public function test_hierarchical_threaded() { … … 3918 4178 /** 3919 4179 * @ticket 8071 4180 * 4181 * @covers WP_Comment_Query::__construct 3920 4182 */ 3921 4183 public function test_hierarchical_threaded_approved() { … … 3994 4256 /** 3995 4257 * @ticket 35192 4258 * 4259 * @covers WP_Comment_Query::__construct 3996 4260 */ 3997 4261 public function test_comment_clauses_prepend_callback_should_be_respected_when_filling_descendants() { … … 4051 4315 /** 4052 4316 * @ticket 35192 4317 * 4318 * @covers WP_Comment_Query::__construct 4053 4319 */ 4054 4320 public function test_comment_clauses_append_callback_should_be_respected_when_filling_descendants() { … … 4108 4374 /** 4109 4375 * @ticket 36487 4376 * 4377 * @covers WP_Comment_Query::__construct 4110 4378 */ 4111 4379 public function test_cache_should_be_hit_when_querying_descendants() { … … 4164 4432 /** 4165 4433 * @ticket 37696 4434 * 4435 * @covers WP_Comment_Query::__construct 4166 4436 */ 4167 4437 public function test_hierarchy_should_be_filled_when_cache_is_incomplete() { … … 4226 4496 * @ticket 37966 4227 4497 * @ticket 37696 4498 * 4499 * @covers WP_Comment_Query::query 4228 4500 */ 4229 4501 public function test_fill_hierarchy_should_disregard_offset_and_number() { … … 4293 4565 /** 4294 4566 * @ticket 27571 4567 * 4568 * @covers WP_Comment_Query::__construct 4295 4569 */ 4296 4570 public function test_update_comment_post_cache_should_be_disabled_by_default() { … … 4313 4587 /** 4314 4588 * @ticket 27571 4589 * 4590 * @covers WP_Comment_Query::__construct 4315 4591 */ 4316 4592 public function test_should_respect_update_comment_post_cache_true() { … … 4334 4610 /** 4335 4611 * @ticket 34138 4612 * 4613 * @covers WP_Comment_Query::__construct 4336 4614 */ 4337 4615 public function test_comment_objects_should_be_filled_from_cache() { … … 4362 4640 /** 4363 4641 * @ticket 34138 4642 * 4643 * @covers WP_Comment_Query::__construct 4364 4644 */ 4365 4645 public function test_comment_objects_should_be_fetched_from_database_when_suspend_cache_addition() { … … 4381 4661 } 4382 4662 4663 /** 4664 * @covers WP_Comment_Query::__construct 4665 */ 4383 4666 public function test_comment_query_should_be_cached() { 4384 4667 global $wpdb; … … 4411 4694 } 4412 4695 4696 /** 4697 * @covers WP_Comment_Query::__construct 4698 */ 4413 4699 public function test_created_comment_should_invalidate_query_cache() { 4414 4700 global $wpdb; … … 4441 4727 } 4442 4728 4729 /** 4730 * @covers WP_Comment_Query::__construct 4731 */ 4443 4732 public function test_updated_comment_should_invalidate_query_cache() { 4444 4733 global $wpdb; … … 4481 4770 } 4482 4771 4772 /** 4773 * @covers WP_Comment_Query::__construct 4774 */ 4483 4775 public function test_deleted_comment_should_invalidate_query_cache() { 4484 4776 global $wpdb; … … 4514 4806 } 4515 4807 4808 /** 4809 * @covers WP_Comment_Query::__construct 4810 */ 4516 4811 public function test_trashed_comment_should_invalidate_query_cache() { 4517 4812 global $wpdb; … … 4547 4842 } 4548 4843 4844 /** 4845 * @covers WP_Comment_Query::__construct 4846 */ 4549 4847 public function test_untrashed_comment_should_invalidate_query_cache() { 4550 4848 global $wpdb; … … 4582 4880 } 4583 4881 4882 /** 4883 * @covers WP_Comment_Query::__construct 4884 */ 4584 4885 public function test_spammed_comment_should_invalidate_query_cache() { 4585 4886 global $wpdb; … … 4615 4916 } 4616 4917 4918 /** 4919 * @covers WP_Comment_Query::__construct 4920 */ 4617 4921 public function test_unspammed_comment_should_invalidate_query_cache() { 4618 4922 global $wpdb; … … 4652 4956 /** 4653 4957 * @ticket 41348 4958 * 4959 * @covers WP_Comment_Query::query 4654 4960 */ 4655 4961 public function test_count_query_should_miss_noncount_cache() { … … 4681 4987 /** 4682 4988 * @ticket 41348 4989 * 4990 * @covers WP_Comment_Query::query 4683 4991 */ 4684 4992 public function test_count_query_should_hit_count_cache() { … … 4710 5018 /** 4711 5019 * @ticket 41348 5020 * 5021 * @covers WP_Comment_Query::query 4712 5022 */ 4713 5023 public function test_different_values_of_fields_should_share_cached_values() { … … 4738 5048 /** 4739 5049 * @ticket 40669 5050 * 5051 * @covers ::get_comments 4740 5052 */ 4741 5053 public function test_add_comment_meta_should_invalidate_query_cache() { … … 4787 5099 /** 4788 5100 * @ticket 40669 5101 * 5102 * @covers ::get_comments 4789 5103 */ 4790 5104 public function test_update_comment_meta_should_invalidate_query_cache() { … … 4836 5150 /** 4837 5151 * @ticket 40669 5152 * 5153 * @covers ::get_comments 4838 5154 */ 4839 5155 public function test_delete_comment_meta_should_invalidate_query_cache() { … … 4885 5201 /** 4886 5202 * @ticket 45800 5203 * 5204 * @covers WP_Comment_Query::query 4887 5205 */ 4888 5206 public function test_comments_pre_query_filter_should_bypass_database_query() { … … 4916 5234 /** 4917 5235 * @ticket 50521 5236 * 5237 * @covers WP_Comment_Query::query 4918 5238 */ 4919 5239 public function test_comments_pre_query_filter_should_set_comments_property() { … … 4945 5265 /** 4946 5266 * @ticket 55460 5267 * 5268 * @covers WP_Comment_Query::__construct 4947 5269 */ 4948 5270 public function test_comment_cache_key_should_ignore_unset_params() { … … 4972 5294 /** 4973 5295 * @ticket 55218 5296 * 5297 * @covers WP_Comment_Query::__construct 4974 5298 */ 4975 5299 public function test_unapproved_comment_with_meta_query_does_not_trigger_ambiguous_identifier_error() {
Note: See TracChangeset
for help on using the changeset viewer.