package | GlotPress |
---|---|
inherited_from | \GP_UnitTestCase |
clean_up_global_scope()
create_factory($field_names= array()
, $defaults= array()
)
setUp()
set_admin_user_as_current()
set_normal_user_as_current()
set_permalink_structure(string $structure = ''
)
Also updates the pre_option filter for permalink_structure
.
global | WP_Rewrite $wp_rewrite |
---|
string
Optional. Permalink structure to set. Default empty.
test_factory_for_thing_create_should_call_create_once()
test_factory_for_thing_create_should_use_function_generator()
test_factory_for_thing_generate_args_should_not_touch_args_if_different_generation_defintions()
test_factory_for_thing_generate_args_should_not_touch_args_if_no_generation_definitions()
test_factory_for_thing_generate_args_should_return_error_on_bad_default_value()
test_factory_for_thing_generate_args_should_set_undefined_scalar_values()
test_factory_for_thing_generate_args_should_use_default_generator_definition_if_non_given()
test_factory_for_thing_generate_args_should_use_generator()
test_factory_for_thing_should_construct_with_factory_and_thing_object()
test_generator_locale_name_should_generate_consecutive_values()
test_generator_locale_name_should_start_with_aa()
test_generator_sequence_should_generate_consecutive_values()
test_generator_sequence_should_generate_consecutive_values_in_template()
test_generator_sequence_should_include_value_in_template()
test_generator_sequence_should_start_with_1()
test_generator_sequence_should_start_with_2()
create_thing_mock_with_name_field_and_with_create_which_should_be_called_once_with($expected_create_args)
create_thing_stub_with_name_and_full_name_which_on_create_returns_mock_whose_save_should_be_called_with($create_args, $expected_save_args)
$factory : \GP_UnitTest_Factory
$url : string
'http://example.org/'