package |
GlotPress |
inherited_from |
\GP_UnitTestCase |
Methods
clean_up_global_scope()
clean_up_global_scope()
Inherited
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
Utility method that resets permalinks and flushes rewrites.
set_permalink_structure(string $structure = ''
)
Inherited
Also updates the pre_option filter for permalink_structure
.
global |
WP_Rewrite $wp_rewrite |
Parameters
$structure
string
Optional. Permalink structure to set. Default empty.
test_copy_translations_from_should_copy_into_empty_set()
test_copy_translations_from_should_copy_into_empty_set()
test_created_action_is_called()
test_created_action_is_called()
test_delete()
test_delete()
test_deleted_action_is_called()
test_deleted_action_is_called()
test_filter_translation_set_import_fuzzy_translations()
test_filter_translation_set_import_fuzzy_translations()
test_filter_translation_set_import_over_existing()
test_filter_translation_set_import_over_existing()
test_import_should_generate_warnings()
test_import_should_generate_warnings()
test_import_should_import_over_existing_different_translation_by_default()
test_import_should_import_over_existing_different_translation_by_default()
test_import_should_not_change_fuzzy_status_if_warnings()
test_import_should_not_change_fuzzy_status_if_warnings()
test_import_should_not_import_existing_same_translation()
test_import_should_not_import_existing_same_translation()
test_import_should_not_import_translations_with_warnings_twice()
test_import_should_not_import_translations_with_warnings_twice()
test_import_should_save_forced_fuzzy()
test_import_should_save_forced_fuzzy()
test_import_should_save_fuzzy()
test_import_should_save_fuzzy()
test_import_should_save_user_info()
test_import_should_save_user_info()
test_import_should_skip_existing_when_importing_fuzzy()
test_import_should_skip_existing_when_importing_fuzzy()
test_previous_state_is_passed_to_saved_action()
test_previous_state_is_passed_to_saved_action()
test_saved_action_is_called()
test_saved_action_is_called()
test_update_status_breakdown_updates_pre_2_1_cached_values()
test_update_status_breakdown_updates_pre_2_1_cached_values()
test_user_can_reject_his_own_translation()
test_user_can_reject_his_own_translation()
Properties
$factory
$factory : \GP_UnitTest_Factory
$url
$url : string
Default
'http://example.org/'