Methods
assertPreConditions()
assertPreConditions()
clean_up_global_scope()
clean_up_global_scope()
Commit a MySQL transaction.
commit_transaction()
Static
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)
We assume that the global can be wiped out
restore_admins()
Fake WP mail globals, to avoid errors
setUpBeforeClass()
Static
Set up globals necessary to avoid errors when using wp_mail()
setUp_wp_mail($args)
Static
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)
Static
Utility method that resets permalinks and flushes rewrites.
set_permalink_structure(string $structure = '')
| since |
2.6.0 bbPress (r5947) |
| global |
WP_Rewrite $wp_rewrite |
Parameters
$structure
stringOptional. Permalink structure to set. Default empty.
Tear down globals set up in setUp_wp_mail()
tearDown_wp_mail($args)
Static
Properties
$cached_SERVER_NAME
$cached_SERVER_NAME
Static