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_delete_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions()

test_delete_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions() 

test_delete_post_forbidden_redirect_if_not_logged_in()

test_delete_post_forbidden_redirect_if_not_logged_in() 

test_delete_post_with_a_non_existent_set_gives_404()

test_delete_post_with_a_non_existent_set_gives_404() 

test_edit_get_admin_can_view_the_form()

test_edit_get_admin_can_view_the_form() 

test_edit_get_forbidden_redirect_if_logged_in_but_without_sufficient_permissions()

test_edit_get_forbidden_redirect_if_logged_in_but_without_sufficient_permissions() 

test_edit_get_forbidden_redirect_if_not_logged_in()

test_edit_get_forbidden_redirect_if_not_logged_in() 

test_edit_post_error_redirect_if_create_was_unsuccessful()

test_edit_post_error_redirect_if_create_was_unsuccessful() 

test_edit_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions()

test_edit_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions() 

test_edit_post_invalid_nonce_redirect_if_not_logged_in()

test_edit_post_invalid_nonce_redirect_if_not_logged_in() 

test_edit_post_invalid_redirect_if_empty_set()

test_edit_post_invalid_redirect_if_empty_set() 

test_edit_post_invalid_redirect_if_missing_name()

test_edit_post_invalid_redirect_if_missing_name() 

test_edit_post_should_add_notice_if_update_was_successful()

test_edit_post_should_add_notice_if_update_was_successful() 

test_edit_post_the_set_name_should_be_updated()

test_edit_post_the_set_name_should_be_updated() 

test_edit_post_with_a_non_existent_set_gives_404()

test_edit_post_with_a_non_existent_set_gives_404() 

test_new_get_admin_can_view_the_form()

test_new_get_admin_can_view_the_form() 

test_new_get_forbidden_redirect_if_logged_in_but_without_sufficient_permissions()

test_new_get_forbidden_redirect_if_logged_in_but_without_sufficient_permissions() 

test_new_get_forbidden_redirect_if_not_logged_in()

test_new_get_forbidden_redirect_if_not_logged_in() 

test_new_post_error_redirect_if_create_was_unsuccessful()

test_new_post_error_redirect_if_create_was_unsuccessful() 

test_new_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions()

test_new_post_forbidden_redirect_if_logged_in_but_without_sufficient_permissions() 

test_new_post_invalid_nonce_redirect_if_not_logged_in()

test_new_post_invalid_nonce_redirect_if_not_logged_in() 

test_new_post_invalid_redirect_if_empty_set()

test_new_post_invalid_redirect_if_empty_set() 

test_new_post_should_add_notice_if_create_was_successful()

test_new_post_should_add_notice_if_create_was_successful() 

test_single_redirects_to_existing_set()

test_single_redirects_to_existing_set() 

test_single_with_a_non_existent_set_gives_404()

test_single_with_a_non_existent_set_gives_404() 

 Properties

 

$factory

$factory : \GP_UnitTest_Factory

Default

 

$route

$route 

Default

 

$route_class

$route_class 

Default

'GP_Route_Translation_Set'
inherited_from \GP_UnitTestCase_Route::route_class
 

$route_class

$route_class 

Default

 

$url

$url : string

Default

'http://example.org/'