Tests for the topics component topic template functions.

group topics
group template
group topic
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_forum_pagination_count()

test_bbp_get_forum_pagination_count() 
covers
covers
todo Implement test_bbp_get_forum_pagination_count().

test_bbp_get_single_topic_description()

test_bbp_get_single_topic_description() 
covers
covers
todo Implement test_bbp_get_single_topic_description().

test_bbp_get_topic()

test_bbp_get_topic() 
covers
todo Implement test_bbp_get_topic().

test_bbp_get_topic_archive_title()

test_bbp_get_topic_archive_title() 
covers
covers
todo Implement test_bbp_get_topic_archive_title().

test_bbp_get_topic_class()

test_bbp_get_topic_class() 
covers
covers
todo Implement test_bbp_get_topic_class().

test_bbp_get_topic_content()

test_bbp_get_topic_content() 
covers
covers

test_bbp_get_topic_excerpt()

test_bbp_get_topic_excerpt() 
covers
covers

test_bbp_get_topic_forum_id()

test_bbp_get_topic_forum_id() 
covers
covers

test_bbp_get_topic_forum_title()

test_bbp_get_topic_forum_title() 
covers
covers

test_bbp_get_topic_id()

test_bbp_get_topic_id() 
covers
covers

test_bbp_get_topic_pagination()

test_bbp_get_topic_pagination() 
covers
covers
todo Implement test_bbp_get_topic_pagination().

test_bbp_get_topic_title()

test_bbp_get_topic_title() 
covers
covers

test_bbp_get_topic_title_with_extra_open_brackets()

test_bbp_get_topic_title_with_extra_open_brackets() 
covers
covers
group bbp_xss

test_bbp_get_topic_title_with_js_as_img_src()

test_bbp_get_topic_title_with_js_as_img_src() 
covers
covers
group bbp_xss

test_bbp_get_topic_title_with_quotes()

test_bbp_get_topic_title_with_quotes() 
covers
covers
group bbp_xss

test_bbp_get_topic_title_with_script_and_quotes()

test_bbp_get_topic_title_with_script_and_quotes() 
covers
covers
group bbp_xss

test_bbp_get_topic_title_with_script_no_quotes()

test_bbp_get_topic_title_with_script_no_quotes() 
covers
covers
group bbp_xss

test_bbp_show_lead_topic()

test_bbp_show_lead_topic() 
covers
todo Implement test_bbp_show_lead_topic().

test_bbp_topic_notices()

test_bbp_topic_notices() 
covers
todo Implement test_bbp_topic_notices().

test_bbp_topic_row_actions()

test_bbp_topic_row_actions() 
covers
todo Implement test_bbp_topic_row_actions().

test_bbp_topic_type_select()

test_bbp_topic_type_select() 
covers
todo Implement test_bbp_topic_type_select().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static