Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
WpGears
Gearman
GearmanClientTest
PHP Class WpGears\Gearman\GearmanClientTest
Inheritance:
extends
WP_UnitTestCase
Show file
Open project: 10up/wp-gears
Public Properties
Property
Type
Description
$client
Public Methods
Method
Description
setUp
( )
tearDown
( )
test_it_can_create_a_gearman_client_if_configured
( )
test_it_does_not_have_blog_id_on_single_site
( )
test_it_has_a_blog_id_if_on_multisite
( )
test_it_has_an_async_group
( )
test_it_knows_if_gearman_servers_are_defined
( )
test_it_knows_if_no_gearman_servers_are_defined
( )
test_it_knows_when_to_use_high_background_method
( )
test_it_knows_when_to_use_low_background_method
( )
test_it_knows_when_to_use_normal_background_method
( )
test_it_uses_blog_id_from_current_site_on_switch
( )
test_it_will_add_default_server_to_client_if_not_defined
( )
test_it_will_add_hook_to_gearman_client_if_present
( )
test_it_will_add_hook_to_gearman_client_with_custom_arguments_and_priority
( )
test_it_will_add_multiple_servers_to_client_if_defined
( )
test_it_will_not_add_hook_to_gearman_if_gearman_is_absent
( )
test_it_will_not_register_if_no_valid_gearman_client
( )
test_it_will_trap_gearman_error_if_failed_to_register_servers
( )
Method Details
setUp()
public
method
public
setUp
( )
tearDown()
public
method
public
tearDown
( )
test_it_can_create_a_gearman_client_if_configured()
public
method
public
test_it_can_create_a_gearman_client_if_configured
( )
test_it_does_not_have_blog_id_on_single_site()
public
method
public
test_it_does_not_have_blog_id_on_single_site
( )
test_it_has_a_blog_id_if_on_multisite()
public
method
public
test_it_has_a_blog_id_if_on_multisite
( )
test_it_has_an_async_group()
public
method
public
test_it_has_an_async_group
( )
test_it_knows_if_gearman_servers_are_defined()
public
method
public
test_it_knows_if_gearman_servers_are_defined
( )
test_it_knows_if_no_gearman_servers_are_defined()
public
method
public
test_it_knows_if_no_gearman_servers_are_defined
( )
test_it_knows_when_to_use_high_background_method()
public
method
public
test_it_knows_when_to_use_high_background_method
( )
test_it_knows_when_to_use_low_background_method()
public
method
public
test_it_knows_when_to_use_low_background_method
( )
test_it_knows_when_to_use_normal_background_method()
public
method
public
test_it_knows_when_to_use_normal_background_method
( )
test_it_uses_blog_id_from_current_site_on_switch()
public
method
public
test_it_uses_blog_id_from_current_site_on_switch
( )
test_it_will_add_default_server_to_client_if_not_defined()
public
method
public
test_it_will_add_default_server_to_client_if_not_defined
( )
test_it_will_add_hook_to_gearman_client_if_present()
public
method
public
test_it_will_add_hook_to_gearman_client_if_present
( )
test_it_will_add_hook_to_gearman_client_with_custom_arguments_and_priority()
public
method
public
test_it_will_add_hook_to_gearman_client_with_custom_arguments_and_priority
( )
test_it_will_add_multiple_servers_to_client_if_defined()
public
method
public
test_it_will_add_multiple_servers_to_client_if_defined
( )
test_it_will_not_add_hook_to_gearman_if_gearman_is_absent()
public
method
public
test_it_will_not_add_hook_to_gearman_if_gearman_is_absent
( )
test_it_will_not_register_if_no_valid_gearman_client()
public
method
public
test_it_will_not_register_if_no_valid_gearman_client
( )
test_it_will_trap_gearman_error_if_failed_to_register_servers()
public
method
public
test_it_will_trap_gearman_error_if_failed_to_register_servers
( )
Property Details
$client
public property
public
$client