[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/tests/phpunit/testcases/ -> test_urls.php (summary)

(no description)

File Size: 258 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GP_Test_Urls:: (46 methods):
  setUp()
  teardown()
  _gp_url_base_path_sub_dir()
  _gp_url_home_url()
  test_gp_url_should_just_add_simple_path_string_if_query_is_missing()
  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_array()
  test_gp_url_should_properly_add_query_string_if_path_is_empty()
  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_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_not_add_double_slash_if_path_starts_with_slash()
  test_gp_url_should_urlencode_query_var_values()
  test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed()
  test_gp_url_join_should_join_with_slash_two_strings_without_slashes()
  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_discard_multiple_slashes_in_the_end_of_component()
  test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component()
  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_return_only_one_slash_if_the_only_component_is_a_slash()
  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_multiple_slashes()
  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_end()
  test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element()
  test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments()
  test_gp_url_join_should_flatten_nested_arrays()
  test_gp_url_join_should_return_empty_string_with_nested_empty_arrays()
  test_gp_url_join_should_not_break_http()
  test_gp_url_join_should_not_break_https()
  test_gp_url_project_should_join_its_arguments()
  test_gp_url_project_should_join_its_array_arguments()
  test_gp_url_current_should_return_http_url()
  test_gp_url_current_should_return_https_url()
  test_gp_url_current_should_return_non_standard_port_url()
  test_gp_url_base_path_filter()
  _gp_url_base_path_filter_single_slash()
  test_gp_url_returns_leading_slash_when_permalinks_have_no_trailing_slash()
  _gp_url_base_path_filter_empty_string()
  test_gp_url_path_returns_single_slash()
  test_gp_url_path_returns_empty_string_if_url_has_no_path()
  test_gp_url_public_root_has_no_trailing_slash_when_permalinks_have_no_trailing_slash()
  test_gp_url_public_root_has_a_trailing_slash_when_permalinks_have_a_trailing_slash()


Class: GP_Test_Urls  - X-Ref

setUp()   X-Ref
No description

teardown()   X-Ref
No description

_gp_url_base_path_sub_dir()   X-Ref
No description

_gp_url_home_url()   X-Ref
No description

test_gp_url_should_just_add_simple_path_string_if_query_is_missing()   X-Ref
No description

test_gp_url_should_not_add_query_string_if_query_is_empty_string()   X-Ref
No description

test_gp_url_should_not_add_query_string_if_query_is_empty_array()   X-Ref
No description

test_gp_url_should_properly_add_query_string_if_path_is_empty()   X-Ref
No description

test_gp_url_should_add_question_mark_if_query_string_does_not_have_one()   X-Ref
No description

test_gp_url_should_expand_query_array()   X-Ref
No description

test_gp_url_should_add_ampersand_if_path_is_empty_and_query_array_has_more_than_one_value()   X-Ref
No description

test_gp_url_should_add_ampersand_if_query_array_has_more_than_one_value()   X-Ref
No description

test_gp_url_should_not_add_double_slash_if_path_starts_with_slash()   X-Ref
No description

test_gp_url_should_urlencode_query_var_values()   X-Ref
No description

test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed()   X-Ref
No description

test_gp_url_join_should_join_with_slash_two_strings_without_slashes()   X-Ref
No description

test_gp_url_join_should_include_only_one_slash_if_first_string_ends_with_slash_and_next_begins_with_slash()   X-Ref
No description

test_gp_url_join_should_discard_multiple_slashes_in_the_end_of_component()   X-Ref
No description

test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component()   X-Ref
No description

test_gp_url_join_should_not_discard_slash_if_the_whole_first_component_is_slash()   X-Ref
No description

test_gp_url_join_should_not_discard_slash_if_the_whole_last_component_is_slash()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_the_only_component_is_a_slash()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_all_components_are_slashes()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_all_components_are_multiple_slashes()   X-Ref
No description

test_gp_url_join_should_skip_empty_components()   X-Ref
No description

test_gp_url_join_should_skip_empty_components_in_the_beginning()   X-Ref
No description

test_gp_url_join_should_skip_empty_components_in_the_end()   X-Ref
No description

test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element()   X-Ref
No description

test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments()   X-Ref
No description

test_gp_url_join_should_flatten_nested_arrays()   X-Ref
No description

test_gp_url_join_should_return_empty_string_with_nested_empty_arrays()   X-Ref
No description

test_gp_url_join_should_not_break_http()   X-Ref
No description

test_gp_url_join_should_not_break_https()   X-Ref
No description

test_gp_url_project_should_join_its_arguments()   X-Ref
No description

test_gp_url_project_should_join_its_array_arguments()   X-Ref
No description

test_gp_url_current_should_return_http_url()   X-Ref
No description

test_gp_url_current_should_return_https_url()   X-Ref
No description

test_gp_url_current_should_return_non_standard_port_url()   X-Ref
No description

test_gp_url_base_path_filter()   X-Ref


_gp_url_base_path_filter_single_slash()   X-Ref
No description

test_gp_url_returns_leading_slash_when_permalinks_have_no_trailing_slash()   X-Ref


_gp_url_base_path_filter_empty_string()   X-Ref
No description

test_gp_url_path_returns_single_slash()   X-Ref


test_gp_url_path_returns_empty_string_if_url_has_no_path()   X-Ref


test_gp_url_public_root_has_no_trailing_slash_when_permalinks_have_no_trailing_slash()   X-Ref


test_gp_url_public_root_has_a_trailing_slash_when_permalinks_have_a_trailing_slash()   X-Ref




Generated: Tue Aug 20 01:01:57 2019 Cross-referenced by PHPXref 0.7.1