package GlotPress
inherited_from \GP_UnitTestCase

 Methods

clean_up_global_scope()

clean_up_global_scope() 
Inherited

provide_test_map_glossary_entries_to_translation_originals()

provide_test_map_glossary_entries_to_translation_originals() 

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

Expects matching only "alt" and "title" elements inside an HTML tag.

test_map_glossary_entries_to_translation_originals_matching_only_some_terms_in_html_tags() 

Expects matching only "alt" and "title" elements inside an HTML tag in the singular and plural origin.

test_map_glossary_entries_to_translation_originals_matching_only_some_terms_in_html_tags_in_the_plural_origin() 

test_map_glossary_entries_to_translation_originals_with_ampersand_in_glossary()

test_map_glossary_entries_to_translation_originals_with_ampersand_in_glossary() 

Expects matching a term with an hyphen [color-scheme].

test_map_glossary_entries_to_translation_originals_with_hyphens_in_glossary() 

Expects matching a term with space and hyphen mixed [GlotPress WP-Team].

test_map_glossary_entries_to_translation_originals_with_spaces_and_hyphens_in_glossary() 

Expects matching a term with a space between words [color scheme].

test_map_glossary_entries_to_translation_originals_with_spaces_in_glossary() 

test_map_glossary_entries_to_translation_originals_with_suffixes()

test_map_glossary_entries_to_translation_originals_with_suffixes($test_string, $expected_result) 
dataProvider provide_test_map_glossary_entries_to_translation_originals

Parameters

$test_string

$expected_result

Expects matching the 3 words term [admin color scheme] instead of the 2 words term [color scheme] or single word term [admin].

test_map_glossary_entries_to_translation_originals_with_word_count_priority() 

test_map_glossary_entries_with_placeholders_glued_glossary_words()

test_map_glossary_entries_with_placeholders_glued_glossary_words() 

test_map_glossary_entries_with_placeholders_glued_glossary_words_in_the_plural_origin()

test_map_glossary_entries_with_placeholders_glued_glossary_words_in_the_plural_origin() 

test_map_glossary_entries_with_placeholders_inside_another_words()

test_map_glossary_entries_with_placeholders_inside_another_words() 

test_map_glossary_entries_with_variations()

test_map_glossary_entries_with_variations() 

test_map_glossary_entries_with_variations_and_placeholders()

test_map_glossary_entries_with_variations_and_placeholders() 

Expects highlighting leading and ending spaces in multi line strings, and double/multiple spaces in the middle.

test_prepare_original_with_leading_and_trailing_spaces_and_multiple_spaces_in_middle_of_multi_line_strings() 

Expects highlighting leading and ending spaces in single line strings, and double/multiple spaces in the middle.

test_prepare_original_with_leading_and_trailing_spaces_and_multiple_spaces_in_middle_of_single_line_strings() 

Expects highlighting line breaks and tabs.

test_prepare_original_with_line_breaks_and_tabs() 

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$url

$url : string

Default

'http://example.org/'