Tests for the `bbp_*_form_forum_*_()` functions.

group forums
group template
group forms
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_get_form_forum_content()

test_bbp_get_form_forum_content() 
covers
covers
todo Implement test_bbp_form_forum_content().
todo Implement test_bbp_get_form_forum_content().

test_bbp_get_form_forum_parent()

test_bbp_get_form_forum_parent() 
covers
covers
todo Implement test_bbp_form_forum_parent().
todo Implement test_bbp_get_form_forum_parent().

test_bbp_get_form_forum_status_dropdown()

test_bbp_get_form_forum_status_dropdown() 
covers
covers
todo Implement test_bbp_form_forum_status_dropdown().
todo Implement test_bbp_get_form_forum_status_dropdown().

test_bbp_get_form_forum_subscribed()

test_bbp_get_form_forum_subscribed() 
covers
covers
todo Implement test_bbp_form_forum_subscribed().
todo Implement test_bbp_get_form_forum_subscribed().

test_bbp_get_form_forum_title()

test_bbp_get_form_forum_title() 
covers
covers
todo Implement test_bbp_form_forum_title().
todo Implement test_bbp_get_form_forum_title().

test_bbp_get_form_forum_type()

test_bbp_get_form_forum_type() 
covers
covers
todo Implement test_bbp_form_forum_type().
todo Implement test_bbp_get_form_forum_type().

test_bbp_get_form_forum_type_dropdown()

test_bbp_get_form_forum_type_dropdown() 
covers
covers
todo Implement test_bbp_form_forum_type_dropdown().
todo Implement test_bbp_get_form_forum_type_dropdown().

test_bbp_get_form_forum_visibility()

test_bbp_get_form_forum_visibility() 
covers
covers
todo Implement test_bbp_form_forum_visibility().
todo Implement test_bbp_get_form_forum_visibility().

test_bbp_get_form_forum_visibility_dropdown()

test_bbp_get_form_forum_visibility_dropdown() 
covers
covers
todo Implement test_bbp_form_forum_visibility_dropdown().
todo Implement test_bbp_get_form_forum_visibility_dropdown().

test_bbp_is_forum_form_post_request()

test_bbp_is_forum_form_post_request() 
covers
todo Implement test_bbp_is_forum_form_post_request().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static