Tests for core abstraction function wrappers

group core
group abstraction
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

Parameters

$url

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

Parameters

$user_id

We assume that the global can be wiped out

restore_admins() 
Inherited
see

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

Parameters

$args

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

Parameters

$user_id

tearDown()

tearDown() 
Inherited

Tear down globals set up in setUp_wp_mail()

tearDown_wp_mail($args) 
InheritedStatic

Parameters

$args

test_bbp_bump_count_meta_can_be_short_circuited_before_type_validation()

test_bbp_bump_count_meta_can_be_short_circuited_before_type_validation() 
covers

test_bbp_bump_count_meta_does_not_retry_a_filtered_update()

test_bbp_bump_count_meta_does_not_retry_a_filtered_update() 
covers

test_bbp_bump_count_meta_handles_missing_and_non_negative_values()

test_bbp_bump_count_meta_handles_missing_and_non_negative_values() 
covers

test_bbp_bump_count_meta_max_attempts_is_filterable()

test_bbp_bump_count_meta_max_attempts_is_filterable() 
covers
ticket BBP3678

test_bbp_bump_count_meta_preserves_an_interleaved_add()

test_bbp_bump_count_meta_preserves_an_interleaved_add() 
covers
ticket BBP3678

test_bbp_bump_count_meta_preserves_an_interleaved_update_from_zero()

test_bbp_bump_count_meta_preserves_an_interleaved_update_from_zero() 
covers
ticket BBP3678

test_bbp_bump_count_meta_preserves_interleaved_decrements()

test_bbp_bump_count_meta_preserves_interleaved_decrements() 
covers
ticket BBP3678

test_bbp_bump_count_meta_refreshes_a_stale_zero_before_decrementing()

test_bbp_bump_count_meta_refreshes_a_stale_zero_before_decrementing() 
covers
ticket BBP3678

test_bbp_bump_count_meta_types_are_filterable()

test_bbp_bump_count_meta_types_are_filterable() 
covers

test_bbp_bump_count_meta_uses_the_database_after_a_filtered_read()

test_bbp_bump_count_meta_uses_the_database_after_a_filtered_read() 
covers
ticket BBP3678

test_bbp_bump_count_meta_validates_required_values_before_filters()

test_bbp_bump_count_meta_validates_required_values_before_filters() 
covers

test_bbp_db()

test_bbp_db() 
covers
todo Implement test_bbp_db().

test_bbp_get_global_object()

test_bbp_get_global_object() 
covers
todo Implement test_bbp_get_global_object().

test_bbp_get_paged_slug()

test_bbp_get_paged_slug() 
covers
todo Implement test_bbp_get_paged_slug().

test_bbp_get_root_url()

test_bbp_get_root_url() 
covers
todo Implement test_bbp_get_root_url().

test_bbp_rewrite()

test_bbp_rewrite() 
covers
todo Implement test_bbp_rewrite().

test_bbp_use_pretty_urls()

test_bbp_use_pretty_urls() 
covers
todo Implement test_bbp_use_pretty_urls().

 Properties

 

$cached_SERVER_NAME

$cached_SERVER_NAME 

Default

null
Static