Tests for the common functions.
| group |
common |
| group |
functions |
| 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_add_view_all()
test_bbp_add_view_all()
| covers |
|
| todo |
Implement test_bbp_add_view_all(). |
test_bbp_check_for_duplicate()
test_bbp_check_for_duplicate()
| covers |
|
| todo |
Implement test_bbp_check_for_duplicate(). |
test_bbp_check_for_flood()
test_bbp_check_for_flood()
| covers |
|
| todo |
Implement test_bbp_check_for_flood(). |
test_bbp_check_for_moderation()
test_bbp_check_for_moderation()
test_bbp_check_for_moderation_strict()
test_bbp_check_for_moderation_strict()
test_bbp_convert_date()
test_bbp_convert_date()
| covers |
|
| todo |
Implement test_bbp_convert_date(). |
test_bbp_filter_anonymous_post_data()
test_bbp_filter_anonymous_post_data()
| covers |
|
| todo |
Implement test_bbp_filter_anonymous_post_data(). |
test_bbp_fix_post_author()
test_bbp_fix_post_author()
| covers |
|
| todo |
Implement test_bbp_fix_post_author(). |
test_bbp_get_do_not_reply_address()
test_bbp_get_do_not_reply_address()
test_bbp_get_global_post_field()
test_bbp_get_global_post_field()
| covers |
|
| todo |
Implement test_bbp_get_global_post_field(). |
test_bbp_get_page_by_path()
test_bbp_get_page_by_path()
| covers |
|
| todo |
Implement test_bbp_get_page_by_path(). |
test_bbp_get_paged()
test_bbp_get_paged()
| covers |
|
| todo |
Implement test_bbp_get_paged(). |
test_bbp_get_redirect_to()
test_bbp_get_redirect_to()
| covers |
|
| todo |
Implement test_bbp_get_redirect_to(). |
test_bbp_get_statistics()
test_bbp_get_statistics()
| covers |
|
| todo |
Implement test_bbp_get_statistics(). |
test_bbp_get_view_all()
test_bbp_get_view_all()
| covers |
|
| todo |
Implement test_bbp_get_view_all(). |
test_bbp_logout_url()
test_bbp_logout_url()
| covers |
|
| todo |
Implement test_bbp_logout_url(). |
test_bbp_notify_forum_subscribers()
test_bbp_notify_forum_subscribers()
| covers |
|
| todo |
Implement test_bbp_notify_forum_subscribers(). |
test_bbp_notify_subscribers()
test_bbp_notify_subscribers()
| covers |
|
| todo |
Implement test_bbp_notify_subscribers(). |
test_bbp_notify_topic_subscribers()
test_bbp_notify_topic_subscribers()
| covers |
|
| todo |
Implement test_bbp_notify_topic_subscribers(). |
test_bbp_parse_args()
test_bbp_parse_args()
| covers |
|
| todo |
Implement test_bbp_parse_args(). |
test_bbp_past_edit_lock_after_0_minutes()
test_bbp_past_edit_lock_after_0_minutes()
test_bbp_past_edit_lock_after_5_minutes()
test_bbp_past_edit_lock_after_5_minutes()
test_bbp_past_edit_lock_before_0_minutes()
test_bbp_past_edit_lock_before_0_minutes()
test_bbp_past_edit_lock_before_5_minutes()
test_bbp_past_edit_lock_before_5_minutes()
test_bbp_past_edit_lock_on_0_minutes()
test_bbp_past_edit_lock_on_0_minutes()
test_bbp_past_edit_lock_on_5_minutes()
test_bbp_past_edit_lock_on_5_minutes()
test_bbp_remove_view_all()
test_bbp_remove_view_all()
| covers |
|
| todo |
Implement test_bbp_remove_view_all(). |
test_bbp_request_feed_trap()
test_bbp_request_feed_trap()
| covers |
|
| todo |
Implement test_bbp_request_feed_trap(). |
test_bbp_set_404()
test_bbp_set_404()
| covers |
|
| todo |
Implement test_bbp_set_404(). |
test_bbp_time_since_day_hour()
test_bbp_time_since_day_hour()
test_bbp_time_since_day_nohours()
test_bbp_time_since_day_nohours()
test_bbp_time_since_days_hours()
test_bbp_time_since_days_hours()
test_bbp_time_since_days_nohours()
test_bbp_time_since_days_nohours()
test_bbp_time_since_future()
test_bbp_time_since_future()
test_bbp_time_since_hour_minute()
test_bbp_time_since_hour_minute()
test_bbp_time_since_hour_nominutes()
test_bbp_time_since_hour_nominutes()
test_bbp_time_since_hours_minutes()
test_bbp_time_since_hours_minutes()
test_bbp_time_since_hours_nominutes()
test_bbp_time_since_hours_nominutes()
test_bbp_time_since_minute_noseconds()
test_bbp_time_since_minute_noseconds()
test_bbp_time_since_minutes_noseconds()
test_bbp_time_since_minutes_noseconds()
test_bbp_time_since_minutes_seconds()
test_bbp_time_since_minutes_seconds()
test_bbp_time_since_month_noweeks()
test_bbp_time_since_month_noweeks()
test_bbp_time_since_month_week()
test_bbp_time_since_month_week()
test_bbp_time_since_months_noweeks()
test_bbp_time_since_months_noweeks()
test_bbp_time_since_months_weeks()
test_bbp_time_since_months_weeks()
test_bbp_time_since_rightnow()
test_bbp_time_since_rightnow()
test_bbp_time_since_second()
test_bbp_time_since_second()
test_bbp_time_since_seconds()
test_bbp_time_since_seconds()
test_bbp_time_since_timezone()
test_bbp_time_since_timezone()
test_bbp_time_since_timezone_minute_ago()
test_bbp_time_since_timezone_minute_ago()
test_bbp_time_since_week_day()
test_bbp_time_since_week_day()
test_bbp_time_since_week_nodays()
test_bbp_time_since_week_nodays()
test_bbp_time_since_weeks_days()
test_bbp_time_since_weeks_days()
test_bbp_time_since_weeks_nodays()
test_bbp_time_since_weeks_nodays()
test_bbp_time_since_year_month()
test_bbp_time_since_year_month()
test_bbp_time_since_year_nomonths()
test_bbp_time_since_year_nomonths()
test_bbp_time_since_years_months()
test_bbp_time_since_years_months()
test_bbp_time_since_years_nomonths()
test_bbp_time_since_years_nomonths()
test_bbp_verify_nonce_request()
test_bbp_verify_nonce_request()
| covers |
|
| todo |
Implement test_bbp_verify_nonce_request(). |
test_should_return_false_for_moderators_to_bypass_strict_moderation_check()
test_should_return_false_for_moderators_to_bypass_strict_moderation_check()
test_should_return_false_for_user_email_moderation_check()
test_should_return_false_for_user_email_moderation_check()
test_should_return_false_for_user_email_strict_moderation_check()
test_should_return_false_for_user_email_strict_moderation_check()
test_should_return_false_for_user_ip_moderation_check()
test_should_return_false_for_user_ip_moderation_check()
test_should_return_false_for_user_ip_strict_moderation_check()
test_should_return_false_for_user_ip_strict_moderation_check()
test_should_return_false_for_user_url_moderation_check()
test_should_return_false_for_user_url_moderation_check()
test_should_return_false_for_user_url_strict_moderation_check()
test_should_return_false_for_user_url_strict_moderation_check()
test_should_return_false_when_html_wrapped_content_matches_moderation_keys()
test_should_return_false_when_html_wrapped_content_matches_moderation_keys()
test_should_return_false_when_html_wrapped_content_matches_strict_moderation_keys()
test_should_return_false_when_html_wrapped_content_matches_strict_moderation_keys()
test_should_return_false_when_link_matches_moderation_keys()
test_should_return_false_when_link_matches_moderation_keys()
test_should_return_false_when_link_matches_strict_moderation_keys()
test_should_return_false_when_link_matches_strict_moderation_keys()
test_should_return_true_for_moderators_to_bypass_moderation_check()
test_should_return_true_for_moderators_to_bypass_moderation_check()
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static
$keymaster_id
$keymaster_id
$moderator_id
$moderator_id
$old_current_user
$old_current_user
test_should_return_false_when_link_count_exceeds_comment_max_links_setting()