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

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

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_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() 
covers

test_bbp_check_for_moderation_strict()

test_bbp_check_for_moderation_strict() 
covers

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_format_revision_reason()

test_bbp_format_revision_reason() 
covers
todo Implement test_bbp_format_revision_reason().

test_bbp_get_do_not_reply_address()

test_bbp_get_do_not_reply_address() 
covers

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_number_format()

test_bbp_number_format() 
covers
todo Implement test_bbp_number_format().

test_bbp_number_format_i18n()

test_bbp_number_format_i18n() 
covers
todo Implement test_bbp_number_format_i18n().

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() 
group locking
covers

test_bbp_past_edit_lock_after_5_minutes()

test_bbp_past_edit_lock_after_5_minutes() 
group locking
covers

test_bbp_past_edit_lock_before_0_minutes()

test_bbp_past_edit_lock_before_0_minutes() 
group locking
covers

test_bbp_past_edit_lock_before_5_minutes()

test_bbp_past_edit_lock_before_5_minutes() 
group locking
covers

test_bbp_past_edit_lock_on_0_minutes()

test_bbp_past_edit_lock_on_0_minutes() 
group locking
covers

test_bbp_past_edit_lock_on_5_minutes()

test_bbp_past_edit_lock_on_5_minutes() 
group locking
covers

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() 
covers
covers

test_bbp_time_since_day_nohours()

test_bbp_time_since_day_nohours() 
covers
covers

test_bbp_time_since_days_hours()

test_bbp_time_since_days_hours() 
covers
covers

test_bbp_time_since_days_nohours()

test_bbp_time_since_days_nohours() 
covers
covers

test_bbp_time_since_future()

test_bbp_time_since_future() 
covers
covers

test_bbp_time_since_hour_minute()

test_bbp_time_since_hour_minute() 
covers
covers

test_bbp_time_since_hour_nominutes()

test_bbp_time_since_hour_nominutes() 
covers
covers

test_bbp_time_since_hours_minutes()

test_bbp_time_since_hours_minutes() 
covers
covers

test_bbp_time_since_hours_nominutes()

test_bbp_time_since_hours_nominutes() 
covers
covers

test_bbp_time_since_minute_noseconds()

test_bbp_time_since_minute_noseconds() 
covers
covers

test_bbp_time_since_minutes_noseconds()

test_bbp_time_since_minutes_noseconds() 
covers
covers

test_bbp_time_since_minutes_seconds()

test_bbp_time_since_minutes_seconds() 
covers
covers

test_bbp_time_since_month_noweeks()

test_bbp_time_since_month_noweeks() 
covers
covers

test_bbp_time_since_month_week()

test_bbp_time_since_month_week() 
covers
covers

test_bbp_time_since_months_noweeks()

test_bbp_time_since_months_noweeks() 
covers
covers

test_bbp_time_since_months_weeks()

test_bbp_time_since_months_weeks() 
covers
covers

test_bbp_time_since_rightnow()

test_bbp_time_since_rightnow() 
covers
covers

test_bbp_time_since_second()

test_bbp_time_since_second() 
covers
covers

test_bbp_time_since_seconds()

test_bbp_time_since_seconds() 
covers
covers

test_bbp_time_since_timezone()

test_bbp_time_since_timezone() 
covers
covers

test_bbp_time_since_timezone_minute_ago()

test_bbp_time_since_timezone_minute_ago() 
covers
covers

test_bbp_time_since_week_day()

test_bbp_time_since_week_day() 
covers
covers

test_bbp_time_since_week_nodays()

test_bbp_time_since_week_nodays() 
covers
covers

test_bbp_time_since_weeks_days()

test_bbp_time_since_weeks_days() 
covers
covers

test_bbp_time_since_weeks_nodays()

test_bbp_time_since_weeks_nodays() 
covers
covers

test_bbp_time_since_year_month()

test_bbp_time_since_year_month() 
covers
covers

test_bbp_time_since_year_nomonths()

test_bbp_time_since_year_nomonths() 
covers
covers

test_bbp_time_since_years_months()

test_bbp_time_since_years_months() 
covers
covers

test_bbp_time_since_years_nomonths()

test_bbp_time_since_years_nomonths() 
covers
covers

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() 
covers

test_should_return_false_for_user_email_moderation_check()

test_should_return_false_for_user_email_moderation_check() 
covers

test_should_return_false_for_user_email_strict_moderation_check()

test_should_return_false_for_user_email_strict_moderation_check() 
covers

test_should_return_false_for_user_ip_moderation_check()

test_should_return_false_for_user_ip_moderation_check() 
covers

test_should_return_false_for_user_ip_strict_moderation_check()

test_should_return_false_for_user_ip_strict_moderation_check() 
covers

test_should_return_false_for_user_url_moderation_check()

test_should_return_false_for_user_url_moderation_check() 
covers

test_should_return_false_for_user_url_strict_moderation_check()

test_should_return_false_for_user_url_strict_moderation_check() 
covers

test_should_return_false_when_html_wrapped_content_matches_moderation_keys()

test_should_return_false_when_html_wrapped_content_matches_moderation_keys() 
covers

test_should_return_false_when_html_wrapped_content_matches_strict_moderation_keys()

test_should_return_false_when_html_wrapped_content_matches_strict_moderation_keys() 
covers

test_should_return_true_for_keymasterss_to_bypass_strict_moderation_check()

test_should_return_true_for_keymasterss_to_bypass_strict_moderation_check() 
covers

test_should_return_true_for_moderators_to_bypass_moderation_check()

test_should_return_true_for_moderators_to_bypass_moderation_check() 
covers

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static
 

$keymaster_id

$keymaster_id 

Default

 

$moderator_id

$moderator_id 

Default

 

$old_current_user

$old_current_user 

Default