group users
group counts
group statistics
package bbPress
inherited_from \BBP_UnitTestCase

 Methods

assertPreConditions()

assertPreConditions() 
Inherited

clean_up_global_scope()

clean_up_global_scope() 
Inherited

Commit a MySQL transaction.

commit_transaction() 
InheritedStatic

custom_forum_role()

custom_forum_role($roles) 

Parameters

$roles

filtered_count()

filtered_count() 

go_to()

go_to($url) 
Inherited

Parameters

$url

We can't use grant_super_admin() because we will need to modify the list more than once, and grant_super_admin() can only be run once because of its global check

grant_super_admin($user_id) 
Inherited

Parameters

$user_id

invalidate_during_count()

invalidate_during_count($sql) 

Parameters

$sql

We assume that the global can be wiped out

restore_admins() 
Inherited
see

setUp()

setUp() 
Inherited

Fake WP mail globals, to avoid errors

setUpBeforeClass() 
InheritedStatic

Set up globals necessary to avoid errors when using wp_mail()

setUp_wp_mail($args) 
InheritedStatic

Parameters

$args

WP's core tests use wp_set_current_user() to change the current user during tests. BP caches the current user differently, so we have to do a bit more work to change it

set_current_user($user_id) 
InheritedStatic

Parameters

$user_id

tearDown()

tearDown() 
Inherited

Tear down globals set up in setUp_wp_mail()

tearDown_wp_mail($args) 
InheritedStatic

Parameters

$args

test_capability_changes_for_another_site_invalidate_its_cached_count()

test_capability_changes_for_another_site_invalidate_its_cached_count() 

test_forum_count_cache_survives_runtime_cache_reset()

test_forum_count_cache_survives_runtime_cache_reset() 

test_forum_count_deduplicates_capability_rows()

test_forum_count_deduplicates_capability_rows() 

test_forum_count_filter_does_not_replace_cached_value()

test_forum_count_filter_does_not_replace_cached_value() 

test_installation_count_uses_core_cached_count()

test_installation_count_uses_core_cached_count() 

test_invalidation_during_a_count_does_not_repopulate_current_generation()

test_invalidation_during_a_count_does_not_repopulate_current_generation() 

test_large_install_preserves_core_and_bbpress_filters()

test_large_install_preserves_core_and_bbpress_filters() 

test_statistics_are_scoped_to_current_site()

test_statistics_are_scoped_to_current_site() 

test_statistics_are_separate_from_filtered_installation_count()

test_statistics_are_separate_from_filtered_installation_count() 

test_statistics_count_forum_roles_once_and_follow_role_changes()

test_statistics_count_forum_roles_once_and_follow_role_changes() 

test_statistics_do_not_query_users_when_disabled()

test_statistics_do_not_query_users_when_disabled() 

test_statistics_include_filtered_forum_roles()

test_statistics_include_filtered_forum_roles() 

test_statistics_with_no_forum_roles_do_not_count_all_users()

test_statistics_with_no_forum_roles_do_not_count_all_users() 

track_count_queries()

track_count_queries($sql) 

Parameters

$sql

user_count()

user_count($enabled = true

Parameters

$enabled

 Properties

 

$count_queries

$count_queries 

Default

0
 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static