Tests for bbPress forum functions.

group forums
group functions
group forum
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_check_forum_edit()

test_bbp_check_forum_edit() 
covers
todo Implement test_bbp_check_forum_edit().

test_bbp_delete_forum()

test_bbp_delete_forum() 
covers
todo Implement test_bbp_delete_forum().

test_bbp_delete_forum_topics()

test_bbp_delete_forum_topics() 
covers
todo Implement test_bbp_delete_forum_topics().

test_bbp_deleted_forum()

test_bbp_deleted_forum() 
covers
todo Implement test_bbp_deleted_forum().

test_bbp_edit_forum_handler()

test_bbp_edit_forum_handler() 
covers
todo Implement test_bbp_edit_forum_handler().

test_bbp_insert_forum()

test_bbp_insert_forum() 
group canonical
covers

test_bbp_new_forum_handler()

test_bbp_new_forum_handler() 
covers
todo Implement test_bbp_new_forum_handler().

test_bbp_remove_forum_from_all_subscriptions()

test_bbp_remove_forum_from_all_subscriptions() 
covers
todo Implement test_bbp_remove_forum_from_all_subscriptions().

test_bbp_save_forum_extras()

test_bbp_save_forum_extras() 
covers
todo Implement test_bbp_save_forum_extras().

test_bbp_trash_forum()

test_bbp_trash_forum() 
covers
todo Implement test_bbp_trash_forum().

test_bbp_trash_forum_topics()

test_bbp_trash_forum_topics() 
covers
todo Implement test_bbp_trash_forum_topics().

test_bbp_trashed_forum()

test_bbp_trashed_forum() 
covers
todo Implement test_bbp_trashed_forum().

test_bbp_untrash_forum()

test_bbp_untrash_forum() 
covers
todo Implement test_bbp_untrash_forum().

test_bbp_untrash_forum_topics()

test_bbp_untrash_forum_topics() 
covers
todo Implement test_bbp_untrash_forum_topics().

test_bbp_untrashed_forum()

test_bbp_untrashed_forum() 
covers
todo Implement test_bbp_untrashed_forum().

test_bbp_update_forum()

test_bbp_update_forum() 
covers
todo Implement test_bbp_update_forum().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static