[ Index ] |
PHP Cross Reference of BBPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 162 lines (4 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
BBP_UnitTestCase:: (13 methods):
setUpBeforeClass()
setUp()
tearDown()
clean_up_global_scope()
assertPreConditions()
go_to()
set_current_user()
grant_super_admin()
restore_admins()
setUp_wp_mail()
tearDown_wp_mail()
commit_transaction()
set_permalink_structure()
Class: BBP_UnitTestCase - X-Ref
setUpBeforeClass() X-Ref |
Fake WP mail globals, to avoid errors |
setUp() X-Ref |
No description |
tearDown() X-Ref |
No description |
clean_up_global_scope() X-Ref |
No description |
assertPreConditions() X-Ref |
No description |
go_to( $url ) X-Ref |
No description |
set_current_user( $user_id ) X-Ref |
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 |
grant_super_admin( $user_id ) X-Ref |
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 |
restore_admins() X-Ref |
We assume that the global can be wiped out |
setUp_wp_mail( $args ) X-Ref |
Set up globals necessary to avoid errors when using wp_mail() |
tearDown_wp_mail( $args ) X-Ref |
Tear down globals set up in setUp_wp_mail() |
commit_transaction() X-Ref |
Commit a MySQL transaction. |
set_permalink_structure( $structure = '' ) X-Ref |
Utility method that resets permalinks and flushes rewrites. since: 2.6.0 bbPress (r5947) param: string $structure Optional. Permalink structure to set. Default empty. |
Generated: Wed Nov 6 01:00:51 2024 | Cross-referenced by PHPXref 0.7.1 |