package GlotPress
inherited_from \GP_UnitTestCase

 Methods

clean_up_global_scope()

clean_up_global_scope() 
Inherited

create_original_with_update_counter()

create_original_with_update_counter($original_args = array()

Parameters

$original_args

create_translations_with()

create_translations_with($entries) 

Parameters

$entries

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

test_by_project_id_and_entry_should_match_case()

test_by_project_id_and_entry_should_match_case() 

test_delete()

test_delete() 

test_import_for_project_should_not_update_unchanged_originals()

test_import_for_project_should_not_update_unchanged_originals() 

test_import_for_project_should_update_cache()

test_import_for_project_should_update_cache() 

test_import_for_project_should_update_changed_originals()

test_import_for_project_should_update_changed_originals() 

test_import_for_project_with_context_which_exceeds_the_maximum_length_of_255()

test_import_for_project_with_context_which_exceeds_the_maximum_length_of_255() 
ticket gh-302

test_import_should_clean_project_count_cache()

test_import_should_clean_project_count_cache() 
ticket 508

test_import_should_leave_unchanged_strings_as_active()

test_import_should_leave_unchanged_strings_as_active() 

test_import_should_mark_translation_of_changed_strings_as_fuzzy()

test_import_should_mark_translation_of_changed_strings_as_fuzzy() 

test_import_should_not_mark_translation_of_changed_strings_as_fuzzy_with_filter()

test_import_should_not_mark_translation_of_changed_strings_as_fuzzy_with_filter() 

test_import_should_remove_from_active_missing_strings()

test_import_should_remove_from_active_missing_strings() 

test_import_should_respect_priority_in_flags()

test_import_should_respect_priority_in_flags() 
ticket gh-1340

test_is_different_from_should_return_true_if_one_value_is_empty_string_and_the_other_is_null()

test_is_different_from_should_return_true_if_one_value_is_empty_string_and_the_other_is_null() 

test_is_different_from_should_return_true_if_only_singular_is_for_update_and_it_is_the_same()

test_is_different_from_should_return_true_if_only_singular_is_for_update_and_it_is_the_same() 

test_is_different_from_should_use_this_if_second_argument_is_not_supplied()

test_is_different_from_should_use_this_if_second_argument_is_not_supplied() 

test_normalize_fields_should_convert_named_priorities_to_numeric_by_name()

test_normalize_fields_should_convert_named_priorities_to_numeric_by_name() 

test_normalize_fields_should_not_convert_numeric_priorities_to_numeric_by_name()

test_normalize_fields_should_not_convert_numeric_priorities_to_numeric_by_name() 

test_normalize_fields_should_unset_priority_if_named_priority_is_missing()

test_normalize_fields_should_unset_priority_if_named_priority_is_missing() 

test_original_should_validate_if_singular_is_zero()

test_original_should_validate_if_singular_is_zero() 
ticket gh-301

test_previous_state_is_passed_to_saved_action()

test_previous_state_is_passed_to_saved_action() 

test_return_types_of_count_by_project_id()

test_return_types_of_count_by_project_id() 
ticket gh-397

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$url

$url : string

Default

'http://example.org/'