[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/tests/phpunit/testcases/groups/ -> template.php (summary)

(no description)

File Size: 1247 lines (33 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Tests_Groups_Template:: (45 methods):
  test_bp_has_groups_with_meta_query()
  test_bp_has_groups_with_order_orderby_with_null_type()
  test_bp_has_groups_defaults_to_DESC_last_activity_for_default_type_active_backpat()
  test_bp_has_groups_single_group_with_slug()
  test_bp_has_groups_parent_id()
  test_bp_has_groups_parent_id_array()
  test_bp_has_groups_parent_id_comma_separated()
  test_bp_has_groups_parent_id_null()
  test_bp_has_groups_parent_id_top_level_groups()
  test_bp_has_groups_parent_id_top_level_groups_using_false()
  test_bp_group_has_members_vanilla()
  test_bp_group_has_members_backpat_retval_format()
  test_bp_group_has_members_with_per_page()
  test_bp_group_has_members_with_max()
  test_bp_group_has_members_with_exclude()
  test_bp_group_has_members_with_exclude_admins_mods_1()
  test_bp_group_has_members_with_exclude_admins_mods_0()
  test_bp_group_has_members_with_exclude_banned_1()
  test_bp_group_has_members_with_exclude_banned_0()
  test_bp_group_has_members_default_order()
  test_bp_group_has_invites_template_structure()
  test_bp_group_has_invites_pagination()
  test_bp_group_has_membership_requests_results()
  test_bp_group_has_membership_requests_format()
  test_bp_group_is_user_banned_in_groups_loop()
  test_bp_group_is_user_banned_not_in_groups_loop()
  test_bp_get_group_member_count_0_members()
  test_bp_get_group_member_count_1_member()
  test_bp_get_group_member_count_2_members()
  test_bp_groups_template_should_give_precedence_to_grpage_URL_param()
  test_bp_groups_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()
  test_bp_groups_template_should_give_precedence_to_num_URL_param()
  test_bp_groups_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()
  test_bp_groups_group_members_template_should_give_precedence_to_mlpage_URL_param()
  test_bp_groups_group_members_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()
  test_bp_groups_group_members_template_should_give_precedence_to_num_URL_param()
  test_bp_groups_group_members_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()
  test_bp_groups_membership_requests_template_should_give_precedence_to_mrpage_URL_param()
  test_bp_groups_membership_requests_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()
  test_bp_groups_membership_requests_template_should_give_precedence_to_num_URL_param()
  test_bp_groups_membership_requests_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()
  test_bp_groups_invite_template_should_give_precedence_to_invitepage_URL_param()
  test_bp_groups_invite_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()
  test_bp_groups_invite_template_should_give_precedence_to_num_URL_param()
  test_bp_groups_invite_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()


Class: BP_Tests_Groups_Template  - X-Ref


test_bp_has_groups_with_meta_query()   X-Ref
Integration test to make sure meta_query is getting passed through


test_bp_has_groups_with_order_orderby_with_null_type()   X-Ref
Integration test to make sure order and orderby are interpreted when
no 'type' value has been passed


test_bp_has_groups_defaults_to_DESC_last_activity_for_default_type_active_backpat()   X-Ref
Integration test to make sure 'order' is set to 'DESC' and 'orderby'
to 'last_activity' when no type or order/orderby params are passed.
This ensures backpat with the old system, where 'active' was the
default type param, and there were no order/orderby params.


test_bp_has_groups_single_group_with_slug()   X-Ref
Test using the 'slug' parameter in bp_has_groups()

Note: The 'slug' parameter currently also requires the 'type' to be set
to 'single-group'.


test_bp_has_groups_parent_id()   X-Ref


test_bp_has_groups_parent_id_array()   X-Ref


test_bp_has_groups_parent_id_comma_separated()   X-Ref


test_bp_has_groups_parent_id_null()   X-Ref


test_bp_has_groups_parent_id_top_level_groups()   X-Ref


test_bp_has_groups_parent_id_top_level_groups_using_false()   X-Ref


test_bp_group_has_members_vanilla()   X-Ref


test_bp_group_has_members_backpat_retval_format()   X-Ref
Switching from BP_Groups_Member to BP_Group_Member_Query meant a
change in the format of the values returned from the query. For
backward compatibility, we translate some of the return values
of BP_Group_Member_Query to the older format. This test makes sure
that the translation happens properly.


test_bp_group_has_members_with_per_page()   X-Ref


test_bp_group_has_members_with_max()   X-Ref
Note: 'max' is a weird parameter. It just changes the member_count
in the global - not the sql query at all. I'm testing what it
appears to be designed to do, not what it feels like it ought to do
if it made any sense. Programming is fun, QED.


test_bp_group_has_members_with_exclude()   X-Ref


test_bp_group_has_members_with_exclude_admins_mods_1()   X-Ref


test_bp_group_has_members_with_exclude_admins_mods_0()   X-Ref


test_bp_group_has_members_with_exclude_banned_1()   X-Ref


test_bp_group_has_members_with_exclude_banned_0()   X-Ref


test_bp_group_has_members_default_order()   X-Ref
Default sort order should be the joined date


test_bp_group_has_invites_template_structure()   X-Ref


test_bp_group_has_invites_pagination()   X-Ref


test_bp_group_has_membership_requests_results()   X-Ref
Checks for proper queried items


test_bp_group_has_membership_requests_format()   X-Ref
Checks that the requests_template object is properly formatted


test_bp_group_is_user_banned_in_groups_loop()   X-Ref


test_bp_group_is_user_banned_not_in_groups_loop()   X-Ref


test_bp_get_group_member_count_0_members()   X-Ref


test_bp_get_group_member_count_1_member()   X-Ref


test_bp_get_group_member_count_2_members()   X-Ref


test_bp_groups_template_should_give_precedence_to_grpage_URL_param()   X-Ref


test_bp_groups_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()   X-Ref


test_bp_groups_template_should_give_precedence_to_num_URL_param()   X-Ref


test_bp_groups_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()   X-Ref


test_bp_groups_group_members_template_should_give_precedence_to_mlpage_URL_param()   X-Ref


test_bp_groups_group_members_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()   X-Ref


test_bp_groups_group_members_template_should_give_precedence_to_num_URL_param()   X-Ref


test_bp_groups_group_members_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()   X-Ref


test_bp_groups_membership_requests_template_should_give_precedence_to_mrpage_URL_param()   X-Ref


test_bp_groups_membership_requests_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()   X-Ref


test_bp_groups_membership_requests_template_should_give_precedence_to_num_URL_param()   X-Ref


test_bp_groups_membership_requests_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()   X-Ref


test_bp_groups_invite_template_should_give_precedence_to_invitepage_URL_param()   X-Ref


test_bp_groups_invite_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value()   X-Ref


test_bp_groups_invite_template_should_give_precedence_to_num_URL_param()   X-Ref


test_bp_groups_invite_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value()   X-Ref




Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1