Tests for the `bbp_*_reply_*()` template functions.

group replies
group template
group reply
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_reply()

test_bbp_get_reply() 
covers
todo Implement test_bbp_get_reply().

test_bbp_get_reply_ancestor_id()

test_bbp_get_reply_ancestor_id() 
covers
covers

test_bbp_get_reply_class()

test_bbp_get_reply_class() 
covers
covers
todo Implement test_bbp_get_reply_class().

test_bbp_get_reply_content()

test_bbp_get_reply_content() 
covers
covers

test_bbp_get_reply_excerpt()

test_bbp_get_reply_excerpt() 
covers
covers

test_bbp_get_reply_forum_id()

test_bbp_get_reply_forum_id() 
covers
covers

test_bbp_get_reply_id()

test_bbp_get_reply_id() 
covers
covers

test_bbp_get_reply_position()

test_bbp_get_reply_position() 
covers
covers
ticket BBP2845

test_bbp_get_reply_title()

test_bbp_get_reply_title() 
covers
covers

test_bbp_get_reply_title_fallback()

test_bbp_get_reply_title_fallback() 
covers

test_bbp_get_reply_to()

test_bbp_get_reply_to() 
covers
covers

test_bbp_get_reply_topic_id()

test_bbp_get_reply_topic_id() 
covers
covers

test_bbp_get_reply_topic_title()

test_bbp_get_reply_topic_title() 
covers
covers

test_bbp_get_reply_url()

test_bbp_get_reply_url() 
covers
covers
ticket BBP2845

test_bbp_get_topic_pagination_count()

test_bbp_get_topic_pagination_count() 
covers
covers
todo Implement test_bbp_get_topic_pagination_count().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static