Tests for the user component count functions.
| group |
users |
| group |
functions |
| group |
counts |
| 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
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
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_bbp_bump_user_reply_count()
test_bbp_bump_user_reply_count()
test_bbp_bump_user_reply_count_preserves_an_absolute_update_filter()
test_bbp_bump_user_reply_count_preserves_an_absolute_update_filter()
test_bbp_bump_user_topic_count()
test_bbp_bump_user_topic_count()
test_bbp_bump_user_topic_count_preserves_an_interleaved_update()
test_bbp_bump_user_topic_count_preserves_an_interleaved_update()
| covers |
|
| covers |
|
| ticket |
BBP3678 |
test_bbp_bump_user_topic_count_preserves_count_filters()
test_bbp_bump_user_topic_count_preserves_count_filters()
test_bbp_bump_user_topic_count_uses_the_current_site_option()
test_bbp_bump_user_topic_count_uses_the_current_site_option()
| covers |
|
| covers |
|
| ticket |
BBP3678 |
test_bbp_decrease_user_reply_count()
test_bbp_decrease_user_reply_count()
test_bbp_decrease_user_topic_count()
test_bbp_decrease_user_topic_count()
test_bbp_get_total_users()
test_bbp_get_total_users()
test_bbp_get_user_post_count()
test_bbp_get_user_post_count()
test_bbp_get_user_replies_created()
test_bbp_get_user_replies_created()
test_bbp_get_user_reply_count()
test_bbp_get_user_reply_count()
test_bbp_get_user_reply_count_raw()
test_bbp_get_user_reply_count_raw()
test_bbp_get_user_topic_count()
test_bbp_get_user_topic_count()
test_bbp_get_user_topic_count_raw()
test_bbp_get_user_topic_count_raw()
test_bbp_get_user_topics_started()
test_bbp_get_user_topics_started()
test_bbp_increase_user_reply_count()
test_bbp_increase_user_reply_count()
test_bbp_increase_user_topic_count()
test_bbp_increase_user_topic_count()
test_bbp_make_spam_and_ham_user_updates_counts()
test_bbp_make_spam_and_ham_user_updates_counts()
| covers |
|
| covers |
|
| covers |
|
| ticket |
BBP3678 |
test_bbp_update_user_reply_count()
test_bbp_update_user_reply_count()
test_bbp_update_user_topic_count()
test_bbp_update_user_topic_count()
test_bump_user_count_treats_zero_as_a_stored_count()
test_bump_user_count_treats_zero_as_a_stored_count()
test_changing_post_author_and_status_rebuilds_user_counts()
test_changing_post_author_and_status_rebuilds_user_counts()
test_changing_post_authors_updates_user_counts()
test_changing_post_authors_updates_user_counts()
test_deleting_posts_updates_user_counts()
test_deleting_posts_updates_user_counts()
test_deleting_user_with_reassignment_updates_counts_and_engagements()
test_deleting_user_with_reassignment_updates_counts_and_engagements()
test_deleting_user_with_reassignment_updates_current_multisite_counts()
test_deleting_user_with_reassignment_updates_current_multisite_counts()
test_new_post_transition_does_not_double_count_missing_user_counts()
test_new_post_transition_does_not_double_count_missing_user_counts()
| covers |
|
| covers |
|
| covers |
|
| ticket |
BBP3429 |
test_status_change_rebuilds_missing_user_counts()
test_status_change_rebuilds_missing_user_counts()
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static