package |
GlotPress |
inherited_from |
\GP_UnitTestCase |
Methods
assertEqualPermissions()
assertEqualPermissions($expected, $actual)
Parameters
$expected
$actual
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.
test_admin_should_be_able_to_do_random_actions()
test_admin_should_be_able_to_do_random_actions()
test_administrator_permissions_create()
test_administrator_permissions_create()
test_approve_translation_set_permissions()
test_approve_translation_set_permissions()
test_create_find()
test_create_find()
test_create_find_with_nulls()
test_create_find_with_nulls()
test_import_permissions()
test_import_permissions()
test_logged_out_permissions()
test_logged_out_permissions()
test_non_admin_should_not_be_able_to_do_random_actions()
test_non_admin_should_not_be_able_to_do_random_actions()
test_permissions_delete_on_user_delete()
test_permissions_delete_on_user_delete()
test_recursive_project_permissions()
test_recursive_project_permissions()
test_recursive_validator_permissions()
test_recursive_validator_permissions()
test_user_can()
test_user_can()
Properties
$factory
$factory : \GP_UnitTest_Factory
$url
$url : string
Default
'http://example.org/'