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

Parameters

$text

assertRedirected()

assertRedirected() 
Inherited

assertTemplateLoadedIs()

assertTemplateLoadedIs($template) 
Inherited

Parameters

$template

assertTemplateOutputNotEmpty()

assertTemplateOutputNotEmpty() 
Inherited

assertThereIsANoticeContaining()

assertThereIsANoticeContaining($text) 
Inherited

Parameters

$text

assertThereIsAnArrayElementContaining()

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

Parameters

$text

$array

$message

assertThereIsAnErrorContaining()

assertThereIsAnErrorContaining($text) 
Inherited

Parameters

$text

clean_up_global_scope()

clean_up_global_scope() 
Inherited

setUp()

setUp() 
inherited_from \GP_UnitTestCase_Route::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

test_api_project_has_translation_sets()

test_api_project_has_translation_sets() 

test_api_project_translation_set_exposes_keys_with_counts()

test_api_project_translation_set_exposes_keys_with_counts() 

test_api_projects_list_contains_expected_project()

test_api_projects_list_contains_expected_project() 

test_api_projects_list_count()

test_api_projects_list_count() 

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$route

$route 

Default

 

$route_class

$route_class 

Default

'GP_Route_Project'
inherited_from \GP_UnitTestCase_Route::route_class
 

$route_class

$route_class 

Default

 

$url

$url : string

Default

'http://example.org/'