package |
GlotPress |
inherited_from |
\GP_UnitTestCase |
Methods
clean_up_global_scope()
clean_up_global_scope()
Inherited
Returns the expected data for the parsed example-untranslated.json file.
data_example_originals()
Returns the expected data for the parsed example-untranslated.json file.
data_example_translations()
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
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_print_exported_file_can_be_decoded()
test_print_exported_file_can_be_decoded()
test_read_originals_from_file()
test_read_originals_from_file()
test_read_originals_from_file_invalid_file()
test_read_originals_from_file_invalid_file()
test_read_originals_from_file_non_existent_file()
test_read_originals_from_file_non_existent_file()
test_read_translations_from_file()
test_read_translations_from_file()
test_read_translations_from_file_invalid_file()
test_read_translations_from_file_invalid_file()
test_read_translations_from_file_non_existent_file()
test_read_translations_from_file_non_existent_file()
Properties
$factory
$factory : \GP_UnitTest_Factory
$url
$url : string
Default
'http://example.org/'
$locale
$locale : \GP_Locale
$translation_set
$translation_set : \GP_Translation_Set