package |
GlotPress |
inherited_from |
\GP_UnitTestCase |
Methods
clean_up_global_scope()
clean_up_global_scope()
Inherited
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_export()
test_export()
test_get_language_code()
test_get_language_code()
test_read_originals()
test_read_originals()
test_read_translations()
test_read_translations()
get_entries_for_export()
get_entries_for_export($translation_set)
Parameters
$translation_set
Properties
$factory
$factory : \GP_UnitTest_Factory
$url
$url : string
Default
'http://example.org/'
$entries
$entries : array
$originals_file
$originals_file : string
$translation_file
$translation_file : string
$has_comments
Default
true