Tests for the user component functions.

group users
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_user_to_object()

test_bbp_add_user_to_object() 
covers

test_bbp_check_user_edit()

test_bbp_check_user_edit() 
covers
todo Implement test_bbp_check_user_edit().

test_bbp_current_anonymous_user_data()

test_bbp_current_anonymous_user_data() 
covers
todo Implement test_bbp_current_anonymous_user_data().

test_bbp_current_author_ip()

test_bbp_current_author_ip() 
covers
todo Implement test_bbp_current_author_ip().

test_bbp_current_author_ua()

test_bbp_current_author_ua() 
covers
todo Implement test_bbp_current_author_ua().

test_bbp_edit_user_email_send_notification()

test_bbp_edit_user_email_send_notification() 
covers
todo Implement test_bbp_edit_user_email_send_notification().

test_bbp_edit_user_handler()

test_bbp_edit_user_handler() 
covers
todo Implement test_bbp_edit_user_handler().

test_bbp_forum_enforce_blocked()

test_bbp_forum_enforce_blocked() 
covers
todo Implement test_bbp_forum_enforce_blocked().

test_bbp_get_current_anonymous_user_data()

test_bbp_get_current_anonymous_user_data() 
covers
todo Implement test_bbp_get_current_anonymous_user_data().

test_bbp_is_anonymous()

test_bbp_is_anonymous() 
covers
todo Implement test_bbp_is_anonymous().

test_bbp_is_object_of_user()

test_bbp_is_object_of_user() 
covers

test_bbp_remove_user_from_object()

test_bbp_remove_user_from_object() 
covers

test_bbp_sanitize_displayed_user_field()

test_bbp_sanitize_displayed_user_field() 
covers
todo Implement test_bbp_sanitize_displayed_user_field().

test_bbp_set_current_anonymous_user_data()

test_bbp_set_current_anonymous_user_data() 
covers
todo Implement test_bbp_set_current_anonymous_user_data().

test_bbp_user_edit_after()

test_bbp_user_edit_after() 
covers
todo Implement test_bbp_user_edit_after().

test_bbp_user_email_change_handler()

test_bbp_user_email_change_handler() 
covers
todo Implement test_bbp_user_email_change_handler().

test_bbp_user_maybe_convert_pass()

test_bbp_user_maybe_convert_pass() 
covers
todo Implement test_bbp_user_maybe_convert_pass().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static