package |
GlotPress |
inherited_from |
\GP_UnitTestCase |
Methods
_assertError()
_assertError($assert, $error, $original, $translation, $gp_original = null
, $locale = null
)
Parameters
$assert
$error
$original
$translation
$gp_original
$locale
assertContainsOutput()
assertContainsOutput($singular, $plural, $translations, $comment, $output_expected, $locale = null
)
Parameters
$singular
$plural
$translations
$comment
$output_expected
$locale
assertHasErrors()
assertHasErrors($error, $original, $translation, $gp_original, $locale = null
)
Parameters
$error
$original
$translation
$gp_original
$locale
assertHasErrorsAndContainsOutput()
assertHasErrorsAndContainsOutput($error, $original, $translation, $gp_original, $output_expected, $locale = null
)
Parameters
$error
$original
$translation
$gp_original
$output_expected
$locale
assertNoErrors()
assertNoErrors($error, $original, $translation, $gp_original = null
, $locale = null
)
Parameters
$error
$original
$translation
$gp_original
$locale
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_error_unexpected_sprintf_token()
test_error_unexpected_sprintf_token()
Properties
$factory
$factory : \GP_UnitTest_Factory
$url
$url : string
Default
'http://example.org/'