Tests for the topic component functions.
| group |
topics |
| group |
functions |
| 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
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_topic_edit()
test_bbp_check_topic_edit()
| covers |
|
| todo |
Implement test_bbp_check_topic_edit(). |
test_bbp_delete_topic()
test_bbp_delete_topic()
| covers |
|
| todo |
Implement test_bbp_delete_topic(). |
test_bbp_delete_topic_replies()
test_bbp_delete_topic_replies()
test_bbp_deleted_topic()
test_bbp_deleted_topic()
| covers |
|
| todo |
Implement test_bbp_deleted_topic(). |
test_bbp_edit_topic_handler()
test_bbp_edit_topic_handler()
| covers |
|
| todo |
Implement test_bbp_edit_topic_handler(). |
test_bbp_get_stickies()
test_bbp_get_stickies()
| covers |
|
| todo |
Implement test_bbp_get_stickies(). |
test_bbp_get_super_stickies()
test_bbp_get_super_stickies()
| covers |
|
| todo |
Implement test_bbp_get_super_stickies(). |
test_bbp_get_topic_statuses()
test_bbp_get_topic_statuses()
| covers |
|
| todo |
Implement test_bbp_get_topic_statuses(). |
test_bbp_get_topic_types()
test_bbp_get_topic_types()
| covers |
|
| todo |
Implement test_bbp_get_topic_types(). |
test_bbp_get_topics_per_page()
test_bbp_get_topics_per_page()
| covers |
|
| todo |
Implement test_bbp_get_topics_per_page(). |
test_bbp_insert_topic()
test_bbp_insert_topic()
test_bbp_merge_topic_count()
test_bbp_merge_topic_count()
| covers |
|
| todo |
Implement test_bbp_merge_topic_count(). |
test_bbp_merge_topic_handler()
test_bbp_merge_topic_handler()
| covers |
|
| todo |
Implement test_bbp_merge_topic_handler(). |
test_bbp_move_topic_handler()
test_bbp_move_topic_handler()
test_bbp_new_topic_handler()
test_bbp_new_topic_handler()
| covers |
|
| todo |
Implement test_bbp_new_topic_handler(). |
test_bbp_remove_topic_from_all_favorites()
test_bbp_remove_topic_from_all_favorites()
| covers |
|
| todo |
Implement test_bbp_remove_topic_from_all_favorites(). |
test_bbp_remove_topic_from_all_subscriptions()
test_bbp_remove_topic_from_all_subscriptions()
| covers |
|
| todo |
Implement test_bbp_remove_topic_from_all_subscriptions(). |
test_bbp_split_topic_count()
test_bbp_split_topic_count()
| covers |
|
| todo |
Implement test_bbp_split_topic_count(). |
test_bbp_split_topic_handler()
test_bbp_split_topic_handler()
| covers |
|
| todo |
Implement test_bbp_split_topic_handler(). |
test_bbp_toggle_topic_handler()
test_bbp_toggle_topic_handler()
| covers |
|
| todo |
Implement test_bbp_toggle_topic_handler(). |
test_bbp_topic_content_autoembed()
test_bbp_topic_content_autoembed()
| covers |
|
| todo |
Implement test_bbp_topic_content_autoembed(). |
test_bbp_trash_topic()
test_bbp_trash_topic()
| covers |
|
| todo |
Implement test_bbp_trash_topic(). |
test_bbp_trash_topic_replies()
test_bbp_trash_topic_replies()
| covers |
|
| todo |
Implement test_bbp_trash_topic_replies(). |
test_bbp_trashed_topic()
test_bbp_trashed_topic()
| covers |
|
| todo |
Implement test_bbp_trashed_topic(). |
test_bbp_untrash_topic()
test_bbp_untrash_topic()
test_bbp_untrash_topic_replies()
test_bbp_untrash_topic_replies()
test_bbp_untrashed_topic()
test_bbp_untrashed_topic()
| covers |
|
| todo |
Implement test_bbp_untrashed_topic(). |
test_bbp_update_topic()
test_bbp_update_topic()
| covers |
|
| todo |
Implement test_bbp_update_topic(). |
test_bbp_update_topic_forum_id()
test_bbp_update_topic_forum_id()
test_bbp_update_topic_revision_log()
test_bbp_update_topic_revision_log()
| covers |
|
| todo |
Implement test_bbp_update_topic_revision_log(). |
test_bbp_update_topic_topic_id()
test_bbp_update_topic_topic_id()
| covers |
|
| todo |
Implement test_bbp_update_topic_topic_id(). |
test_bbp_update_topic_walker()
test_bbp_update_topic_walker()
| covers |
|
| todo |
Implement test_bbp_update_topic_walker(). |
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static
$keymaster_id
$keymaster_id
$old_current_user
$old_current_user