Tests for the `bbp_get_forum_last_*()` template functions.
| group |
forums |
| group |
template |
| group |
get_last_thing |
| 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
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
We assume that the global can be wiped out
restore_admins()
Inherited
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
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
Utility method that resets permalinks and flushes rewrites.
set_permalink_structure(string $structure = '')
Inherited
| since |
2.6.0 bbPress (r5947) |
| global |
WP_Rewrite $wp_rewrite |
Parameters
$structure
stringOptional. Permalink structure to set. Default empty.
tearDown()
tearDown()
Inherited
Tear down globals set up in setUp_wp_mail()
tearDown_wp_mail($args)
InheritedStatic
test_bbp_get_forum_and_topic_last_topic_id_and_last_reply_id()
test_bbp_get_forum_and_topic_last_topic_id_and_last_reply_id()
| covers |
|
| covers |
|
| covers |
|
| covers |
|
| covers |
|
| covers |
|
test_bbp_get_forum_last_active_id()
test_bbp_get_forum_last_active_id()
test_bbp_get_forum_last_active_id_with_pending_reply()
test_bbp_get_forum_last_active_id_with_pending_reply()
test_bbp_get_forum_last_active_time()
test_bbp_get_forum_last_active_time()
test_bbp_get_forum_last_reply_author_id()
test_bbp_get_forum_last_reply_author_id()
test_bbp_get_forum_last_reply_author_link()
test_bbp_get_forum_last_reply_author_link()
test_bbp_get_forum_last_reply_id()
test_bbp_get_forum_last_reply_id()
test_bbp_get_forum_last_reply_permalink()
test_bbp_get_forum_last_reply_permalink()
| covers |
|
| covers |
|
| todo |
Implement test_bbp_get_forum_last_reply_permalink(). |
test_bbp_get_forum_last_reply_title()
test_bbp_get_forum_last_reply_title()
test_bbp_get_forum_last_reply_url()
test_bbp_get_forum_last_reply_url()
| covers |
|
| covers |
|
| todo |
Implement test_bbp_get_forum_last_reply_url(). |
test_bbp_get_forum_last_topic_author_id()
test_bbp_get_forum_last_topic_author_id()
test_bbp_get_forum_last_topic_author_link()
test_bbp_get_forum_last_topic_author_link()
test_bbp_get_forum_last_topic_id()
test_bbp_get_forum_last_topic_id()
test_bbp_get_forum_last_topic_permalink()
test_bbp_get_forum_last_topic_permalink()
test_bbp_get_forum_last_topic_title()
test_bbp_get_forum_last_topic_title()
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static