| 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)
filtered_count()
filtered_count()
go_to()
go_to($url)
Inherited
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
invalidate_during_count()
invalidate_during_count($sql)
We assume that the global can be wiped out
restore_admins()
Inherited
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
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
Utility method that resets permalinks and flushes rewrites.
set_permalink_structure(string $structure = '')
Inherited
| since |
2.6.0 bbPress (r5947) |
| global |
WP_Rewrite $wp_rewrite |
Parameters
$structure
stringOptional. Permalink structure to set. Default empty.
tearDown()
tearDown()
Inherited
Tear down globals set up in setUp_wp_mail()
tearDown_wp_mail($args)
InheritedStatic
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)
user_count()
user_count($enabled = true)
Properties
$count_queries
$count_queries
$cached_SERVER_NAME
$cached_SERVER_NAME
Static