package GlotPress
inherited_from \GP_UnitTestCase

 Methods

_gp_url_base_path_filter_empty_string()

_gp_url_base_path_filter_empty_string() 

_gp_url_base_path_filter_single_slash()

_gp_url_base_path_filter_single_slash() 

_gp_url_base_path_sub_dir()

_gp_url_base_path_sub_dir() 

_gp_url_home_url()

_gp_url_home_url() 

clean_up_global_scope()

clean_up_global_scope() 
Inherited

setUp()

setUp() 
inherited_from \GP_UnitTestCase::setUp()

setUp()

setUp() 
Inherited

set_admin_user_as_current()

set_admin_user_as_current() 
Inherited

set_normal_user_as_current()

set_normal_user_as_current() 
Inherited

teardown()

teardown() 

test_gp_url_base_path_filter()

test_gp_url_base_path_filter() 
ticket gh-203

test_gp_url_current_should_return_http_url()

test_gp_url_current_should_return_http_url() 

test_gp_url_current_should_return_https_url()

test_gp_url_current_should_return_https_url() 

test_gp_url_current_should_return_non_standard_port_url()

test_gp_url_current_should_return_non_standard_port_url() 

test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element()

test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element() 

test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component()

test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component() 

test_gp_url_join_should_discard_multiple_slashes_in_the_end_of_component()

test_gp_url_join_should_discard_multiple_slashes_in_the_end_of_component() 

test_gp_url_join_should_flatten_nested_arrays()

test_gp_url_join_should_flatten_nested_arrays() 

test_gp_url_join_should_include_only_one_slash_if_first_string_ends_with_slash_and_next_begins_with_slash()

test_gp_url_join_should_include_only_one_slash_if_first_string_ends_with_slash_and_next_begins_with_slash() 

test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments()

test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments() 

test_gp_url_join_should_join_with_slash_two_strings_without_slashes()

test_gp_url_join_should_join_with_slash_two_strings_without_slashes() 

test_gp_url_join_should_not_break_http()

test_gp_url_join_should_not_break_http() 

test_gp_url_join_should_not_break_https()

test_gp_url_join_should_not_break_https() 

test_gp_url_join_should_not_discard_slash_if_the_whole_first_component_is_slash()

test_gp_url_join_should_not_discard_slash_if_the_whole_first_component_is_slash() 

test_gp_url_join_should_not_discard_slash_if_the_whole_last_component_is_slash()

test_gp_url_join_should_not_discard_slash_if_the_whole_last_component_is_slash() 

test_gp_url_join_should_return_empty_string_with_nested_empty_arrays()

test_gp_url_join_should_return_empty_string_with_nested_empty_arrays() 

test_gp_url_join_should_return_only_one_slash_if_all_components_are_multiple_slashes()

test_gp_url_join_should_return_only_one_slash_if_all_components_are_multiple_slashes() 

test_gp_url_join_should_return_only_one_slash_if_all_components_are_slashes()

test_gp_url_join_should_return_only_one_slash_if_all_components_are_slashes() 

test_gp_url_join_should_return_only_one_slash_if_the_only_component_is_a_slash()

test_gp_url_join_should_return_only_one_slash_if_the_only_component_is_a_slash() 

test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed()

test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed() 

test_gp_url_join_should_skip_empty_components()

test_gp_url_join_should_skip_empty_components() 

test_gp_url_join_should_skip_empty_components_in_the_beginning()

test_gp_url_join_should_skip_empty_components_in_the_beginning() 

test_gp_url_join_should_skip_empty_components_in_the_end()

test_gp_url_join_should_skip_empty_components_in_the_end() 

test_gp_url_path_returns_empty_string_if_url_has_no_path()

test_gp_url_path_returns_empty_string_if_url_has_no_path() 
ticket gh-203

test_gp_url_path_returns_single_slash()

test_gp_url_path_returns_single_slash() 
ticket gh-203

test_gp_url_project_should_join_its_arguments()

test_gp_url_project_should_join_its_arguments() 

test_gp_url_project_should_join_its_array_arguments()

test_gp_url_project_should_join_its_array_arguments() 

test_gp_url_should_add_ampersand_if_path_is_empty_and_query_array_has_more_than_one_value()

test_gp_url_should_add_ampersand_if_path_is_empty_and_query_array_has_more_than_one_value() 

test_gp_url_should_add_ampersand_if_query_array_has_more_than_one_value()

test_gp_url_should_add_ampersand_if_query_array_has_more_than_one_value() 

test_gp_url_should_add_question_mark_if_query_string_does_not_have_one()

test_gp_url_should_add_question_mark_if_query_string_does_not_have_one() 

test_gp_url_should_expand_query_array()

test_gp_url_should_expand_query_array() 

test_gp_url_should_just_add_simple_path_string_if_query_is_missing()

test_gp_url_should_just_add_simple_path_string_if_query_is_missing() 

test_gp_url_should_not_add_double_slash_if_path_starts_with_slash()

test_gp_url_should_not_add_double_slash_if_path_starts_with_slash() 

test_gp_url_should_not_add_query_string_if_query_is_empty_array()

test_gp_url_should_not_add_query_string_if_query_is_empty_array() 

test_gp_url_should_not_add_query_string_if_query_is_empty_string()

test_gp_url_should_not_add_query_string_if_query_is_empty_string() 

test_gp_url_should_properly_add_query_string_if_path_is_empty()

test_gp_url_should_properly_add_query_string_if_path_is_empty() 

test_gp_url_should_urlencode_query_var_values()

test_gp_url_should_urlencode_query_var_values() 

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$url

$url : string

Default

'http://example.org/'