Tests for the reply component functions.
| group |
replies |
| group |
functions |
| 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
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_check_reply_edit()
test_bbp_check_reply_edit()
| covers |
|
| todo |
Implement test_bbp_check_reply_edit(). |
test_bbp_delete_reply()
test_bbp_delete_reply()
| covers |
|
| todo |
Implement test_bbp_delete_reply(). |
test_bbp_deleted_reply()
test_bbp_deleted_reply()
| covers |
|
| todo |
Implement test_bbp_deleted_reply(). |
test_bbp_edit_reply_handler()
test_bbp_edit_reply_handler()
| covers |
|
| todo |
Implement test_bbp_edit_reply_handler(). |
test_bbp_get_replies_per_page()
test_bbp_get_replies_per_page()
| covers |
|
| todo |
Implement test_bbp_get_replies_per_page(). |
test_bbp_get_reply_ancestors()
test_bbp_get_reply_ancestors()
| covers |
|
| todo |
Implement test_bbp_get_reply_ancestors(). |
test_bbp_get_reply_position_raw()
test_bbp_get_reply_position_raw()
| covers |
|
| todo |
Implement test_bbp_get_reply_position_raw(). |
test_bbp_has_replies_where()
test_bbp_has_replies_where()
| covers |
|
| todo |
Implement test_bbp_has_replies_where(). |
test_bbp_insert_reply()
test_bbp_insert_reply()
test_bbp_list_replies()
test_bbp_list_replies()
| covers |
|
| todo |
Implement test_bbp_list_replies(). |
test_bbp_move_reply_count()
test_bbp_move_reply_count()
test_bbp_move_reply_count_transfers_contribution_when_converted_to_topic()
test_bbp_move_reply_count_transfers_contribution_when_converted_to_topic()
test_bbp_move_reply_count_updates_hidden_counts()
test_bbp_move_reply_count_updates_hidden_counts()
test_bbp_move_reply_handler()
test_bbp_move_reply_handler()
| covers |
|
| todo |
Implement test_bbp_move_reply_handler(). |
test_bbp_new_reply_handler()
test_bbp_new_reply_handler()
| covers |
|
| todo |
Implement test_bbp_new_reply_handler(). |
test_bbp_new_reply_updates_each_ancestor_once()
test_bbp_new_reply_updates_each_ancestor_once()
test_bbp_reply_content_autoembed()
test_bbp_reply_content_autoembed()
| covers |
|
| todo |
Implement test_bbp_reply_content_autoembed(). |
test_bbp_toggle_reply_handler()
test_bbp_toggle_reply_handler()
| covers |
|
| todo |
Implement test_bbp_toggle_reply_handler(). |
test_bbp_trash_reply()
test_bbp_trash_reply()
| covers |
|
| todo |
Implement test_bbp_trash_reply(). |
test_bbp_trashed_reply()
test_bbp_trashed_reply()
| covers |
|
| todo |
Implement test_bbp_trashed_reply(). |
test_bbp_untrash_reply()
test_bbp_untrash_reply()
| covers |
|
| todo |
Implement test_bbp_untrash_reply(). |
test_bbp_untrashed_reply()
test_bbp_untrashed_reply()
| covers |
|
| todo |
Implement test_bbp_untrashed_reply(). |
test_bbp_update_reply()
test_bbp_update_reply()
| covers |
|
| todo |
Implement test_bbp_update_reply(). |
test_bbp_update_reply_forum_id()
test_bbp_update_reply_forum_id()
test_bbp_update_reply_position()
test_bbp_update_reply_position()
| covers |
|
| todo |
Implement test_bbp_update_reply_position(). |
test_bbp_update_reply_revision_log()
test_bbp_update_reply_revision_log()
| covers |
|
| todo |
Implement test_bbp_update_reply_revision_log(). |
test_bbp_update_reply_to()
test_bbp_update_reply_to()
| covers |
|
| todo |
Implement test_bbp_update_reply_to(). |
test_bbp_update_reply_topic_id()
test_bbp_update_reply_topic_id()
test_bbp_update_reply_walker()
test_bbp_update_reply_walker()
test_bbp_validate_reply_to()
test_bbp_validate_reply_to()
| covers |
|
| todo |
Implement test_bbp_validate_reply_to(). |
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static