package GlotPress
inherited_from \GP_UnitTestCase

 Methods

Parses and returns the API response.

api_response() 

assert404()

assert404() 

assertErrorRedirect()

assertErrorRedirect() 

assertInvalidNonceRedirect()

assertInvalidNonceRedirect() 

assertInvalidRedirect()

assertInvalidRedirect() 

assertNotAllowedRedirect()

assertNotAllowedRedirect() 

assertRedirectURLContains()

assertRedirectURLContains($text) 

Parameters

$text

assertRedirected()

assertRedirected() 

assertTemplateLoadedIs()

assertTemplateLoadedIs($template) 

Parameters

$template

assertTemplateOutputNotEmpty()

assertTemplateOutputNotEmpty() 

assertThereIsANoticeContaining()

assertThereIsANoticeContaining($text) 

Parameters

$text

assertThereIsAnArrayElementContaining()

assertThereIsAnArrayElementContaining($text, $array, $message = null

Parameters

$text

$array

$message

assertThereIsAnErrorContaining()

assertThereIsAnErrorContaining($text) 

Parameters

$text

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

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$route

$route 

Default

 

$route_class

$route_class 

Default

 

$url

$url : string

Default

'http://example.org/'