Tests for the admin tools functions.

group tools
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_from \BBP_UnitTestCase::setUp()

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_from \BBP_UnitTestCase::tearDown()

tearDown()

tearDown() 
Inherited

Tear down globals set up in setUp_wp_mail()

tearDown_wp_mail($args) 
InheritedStatic

Parameters

$args

test_bbp_admin_repair()

test_bbp_admin_repair() 
covers
todo Implement test_bbp_admin_repair().

test_bbp_admin_repair_closed_topics()

test_bbp_admin_repair_closed_topics() 
covers
todo Implement test_bbp_admin_repair_closed_topics().

test_bbp_admin_repair_forum_meta()

test_bbp_admin_repair_forum_meta() 
covers

test_bbp_admin_repair_forum_reply_count()

test_bbp_admin_repair_forum_reply_count() 
covers

test_bbp_admin_repair_forum_topic_count()

test_bbp_admin_repair_forum_topic_count() 
covers

test_bbp_admin_repair_forum_visibility()

test_bbp_admin_repair_forum_visibility() 
covers
todo Implement test_bbp_admin_repair_forum_visibility().

test_bbp_admin_repair_freshness()

test_bbp_admin_repair_freshness() 
covers
todo Implement test_bbp_admin_repair_freshness().

test_bbp_admin_repair_group_forum_relationship()

test_bbp_admin_repair_group_forum_relationship() 
covers
todo Implement test_bbp_admin_repair_group_forum_relationship().

test_bbp_admin_repair_handler()

test_bbp_admin_repair_handler() 
covers
todo Implement test_bbp_admin_repair_handler().

test_bbp_admin_repair_list()

test_bbp_admin_repair_list() 
covers
todo Implement test_bbp_admin_repair_list().

test_bbp_admin_repair_reply_menu_order()

test_bbp_admin_repair_reply_menu_order() 
covers
todo Implement test_bbp_admin_repair_reply_menu_order().

test_bbp_admin_repair_sticky()

test_bbp_admin_repair_sticky() 
covers
todo Implement test_bbp_admin_repair_sticky().

test_bbp_admin_repair_topic_hidden_reply_count()

test_bbp_admin_repair_topic_hidden_reply_count() 
covers

test_bbp_admin_repair_topic_meta()

test_bbp_admin_repair_topic_meta() 
covers
todo Implement test_bbp_admin_repair_topic_meta().

test_bbp_admin_repair_topic_reply_count()

test_bbp_admin_repair_topic_reply_count() 
covers
todo Implement test_bbp_admin_repair_topic_reply_count().

test_bbp_admin_repair_topic_voice_count()

test_bbp_admin_repair_topic_voice_count() 
covers

test_bbp_admin_repair_user_favorites()

test_bbp_admin_repair_user_favorites() 
covers
todo Implement test_bbp_admin_repair_user_favorites().

test_bbp_admin_repair_user_forum_subscriptions()

test_bbp_admin_repair_user_forum_subscriptions() 
covers
todo Implement test_bbp_admin_repair_user_forum_subscriptions().

test_bbp_admin_repair_user_reply_count()

test_bbp_admin_repair_user_reply_count() 
covers
todo Implement test_bbp_admin_repair_user_reply_count().

test_bbp_admin_repair_user_roles()

test_bbp_admin_repair_user_roles() 
covers
todo Implement test_bbp_admin_repair_user_roles().

test_bbp_admin_repair_user_topic_count()

test_bbp_admin_repair_user_topic_count() 
covers
todo Implement test_bbp_admin_repair_user_topic_count().

test_bbp_admin_repair_user_topic_subscriptions()

test_bbp_admin_repair_user_topic_subscriptions() 
covers
todo Implement test_bbp_admin_repair_user_topic_subscriptions().

test_bbp_admin_reset()

test_bbp_admin_reset() 
covers
todo Implement test_bbp_admin_reset().

test_bbp_admin_reset_handler()

test_bbp_admin_reset_handler() 
covers
todo Implement test_bbp_admin_reset_handler().

test_bbp_admin_tools_converter_help()

test_bbp_admin_tools_converter_help() 
covers
todo Implement test_bbp_admin_tools_converter_help().

test_bbp_admin_tools_feedback()

test_bbp_admin_tools_feedback() 
covers
todo Implement test_bbp_admin_tools_feedback().

test_bbp_admin_tools_repair_help()

test_bbp_admin_tools_repair_help() 
covers
todo Implement test_bbp_admin_tools_repair_help().

test_bbp_admin_tools_reset_help()

test_bbp_admin_tools_reset_help() 
covers
todo Implement test_bbp_admin_tools_reset_help().

test_bbp_admin_upgrade_user_favorites()

test_bbp_admin_upgrade_user_favorites() 
covers

test_bbp_admin_upgrade_user_forum_subscriptions()

test_bbp_admin_upgrade_user_forum_subscriptions() 
covers

test_bbp_admin_upgrade_user_topic_subscriptions()

test_bbp_admin_upgrade_user_topic_subscriptions() 
covers

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static
 

$keymaster_id

$keymaster_id 

Default

 

$old_current_user

$old_current_user 

Default

0