group | locales |
---|---|
package | GlotPress |
inherited_from | \GP_UnitTestCase |
clean_up_global_scope()
data_provider_locales()
setUp()
set_admin_user_as_current()
set_normal_user_as_current()
set_permalink_structure(string $structure = ''
)
Also updates the pre_option filter for permalink_structure
.
global | WP_Rewrite $wp_rewrite |
---|
string
Optional. Permalink structure to set. Default empty.
test_class_exists()
test_locale_iso_codes(\GP_locale $locale)
dataProvider | data_provider_locales |
---|
\GP_locale
The locale to test.
test_locale_plural(\GP_locale $locale)
dataProvider | data_provider_locales |
---|
\GP_locale
The locale to test.
$factory : \GP_UnitTest_Factory
$url : string
'http://example.org/'
SKIP_LOCALES = array('ak', 'am', 'as', 'bho', 'bn', 'fuc', 'ful', 'gu', 'hi', 'hy', 'kn', 'mg', 'nso', 'pcm', 'pt-ao', 'si', 'wa', 'zul', 'orm', 'tr', 'tuk', 'bm', 'jv', 'ka', 'mya', 'nqo', 'sah', 'yor', 'br', 'ceb', 'tl', 'cy', 'he', 'id', 'uz', 'tir', 'tzm', 'fr', 'fr-be', 'fr-ca', 'fr-ch')