package |
GlotPress |
inherited_from |
\GP_UnitTestCase_Route |
Methods
Parses and returns the API response.
api_response()
Inherited
assert404()
assert404()
Inherited
assertErrorRedirect()
assertErrorRedirect()
Inherited
assertInvalidNonceRedirect()
assertInvalidNonceRedirect()
Inherited
assertInvalidRedirect()
assertInvalidRedirect()
Inherited
assertNotAllowedRedirect()
assertNotAllowedRedirect()
Inherited
assertRedirectURLContains()
assertRedirectURLContains($text)
Inherited
assertRedirected()
assertRedirected()
Inherited
assertTemplateLoadedIs()
assertTemplateLoadedIs($template)
Inherited
assertTemplateOutputNotEmpty()
assertTemplateOutputNotEmpty()
Inherited
assertThereIsANoticeContaining()
assertThereIsANoticeContaining($text)
Inherited
assertThereIsAnArrayElementContaining()
assertThereIsAnArrayElementContaining($text, $array, $message = null
)
Inherited
Parameters
$text
$array
$message
assertThereIsAnErrorContaining()
assertThereIsAnErrorContaining($text)
Inherited
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.
Properties
$factory
$factory : \GP_UnitTest_Factory
$route_class
$route_class
inherited_from |
\GP_UnitTestCase_Route::route_class |
$route_class
$route_class
$url
$url : string
Default
'http://example.org/'