| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Full functional accesslib test.
| Copyright: | 2011 Petr Skoda {@link http://skodak.org} |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 3066 lines (154 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
core_accesslib_testcase:: (51 methods):
test_context_comparisons()
test_accesslib_clear_all_caches()
test_capabilities_mutation()
test_get_role_access()
test_get_guest_role()
test_is_siteadmin()
test_is_enrolled()
test_isloggedin()
test_isguestuser()
test_is_safe_capability()
test_get_context_info_array()
test_has_coursecontact_role()
test_create_role()
test_assign_capability()
test_unassign_capability()
test_role_assign()
test_role_unassign()
test_role_unassign_all()
test_get_roles_with_capability()
test_delete_role()
test_get_all_roles()
test_get_role_archetypes()
test_get_archetype_roles()
test_role_get_name()
test_role_fix_names()
test_get_default_role_archetype_allows()
test_allow_assign()
test_allow_override()
test_allow_switch()
test_get_assignable_roles()
test_get_switchable_roles()
test_get_overridable_roles()
test_get_default_contextlevels()
test_set_role_contextlevels()
test_get_roles_for_contextlevels()
test_get_default_enrol_roles()
test_get_role_users()
test_get_roles_used_in_context()
test_get_user_roles_in_course()
test_has_capability_and_friends()
test_guess_if_creator_will_have_course_capability()
test_require_capability()
test_get_enrolled_sql_different_course()
test_get_enrolled_sql_role_only()
test_get_enrolled_sql_multiple_enrolments()
get_enrolled_sql_provider()
test_get_enrolled_sql_course()
test_permission_evaluation()
test_update_capabilities()
test_reset_role_capabilities()
test_count_role_users()
context_inspection:: (1 method):
test_context_cache_size()
Class: core_accesslib_testcase - X-Ref
Functional test for accesslib.php| test_context_comparisons() X-Ref |
| Verify comparison of context instances in phpunit asserts. |
| test_accesslib_clear_all_caches() X-Ref |
| Test resetting works. |
| test_capabilities_mutation() X-Ref |
| Check modifying capability record is not exposed to other code. |
| test_get_role_access() X-Ref |
| Test getting of role access |
| test_get_guest_role() X-Ref |
| Test getting of guest role. |
| test_is_siteadmin() X-Ref |
| Test if user is admin. |
| test_is_enrolled() X-Ref |
| Test if user is enrolled in a course |
| test_isloggedin() X-Ref |
| Test logged in test. |
| test_isguestuser() X-Ref |
| Test guest user test. |
| test_is_safe_capability() X-Ref |
| Test capability riskiness. |
| test_get_context_info_array() X-Ref |
| Test context fetching. |
| test_has_coursecontact_role() X-Ref |
| Test looking for course contacts. |
| test_create_role() X-Ref |
| Test creation of roles. |
| test_assign_capability() X-Ref |
| Test adding of capabilities to roles. |
| test_unassign_capability() X-Ref |
| Test removing of capabilities from roles. |
| test_role_assign() X-Ref |
| Test role assigning. |
| test_role_unassign() X-Ref |
| Test role unassigning. |
| test_role_unassign_all() X-Ref |
| Test role unassigning. |
| test_get_roles_with_capability() X-Ref |
| Test role queries. |
| test_delete_role() X-Ref |
| Test deleting of roles. |
| test_get_all_roles() X-Ref |
| Test fetching of all roles. |
| test_get_role_archetypes() X-Ref |
| Test getting of all archetypes. |
| test_get_archetype_roles() X-Ref |
| Test getting of roles with given archetype. |
| test_role_get_name() X-Ref |
| Test aliased role names. |
| test_role_fix_names() X-Ref |
| Test tweaking of role name arrays. |
| test_get_default_role_archetype_allows() X-Ref |
| Test role default allows. |
| test_allow_assign() X-Ref |
| Test allowing of role assignments. |
| test_allow_override() X-Ref |
| Test allowing of role overrides. |
| test_allow_switch() X-Ref |
| Test allowing of role switching. |
| test_get_assignable_roles() X-Ref |
| Test returning of assignable roles in context. |
| test_get_switchable_roles() X-Ref |
| Test getting of all switchable roles. |
| test_get_overridable_roles() X-Ref |
| Test getting of all overridable roles. |
| test_get_default_contextlevels() X-Ref |
| Test we have context level defaults. |
| test_set_role_contextlevels() X-Ref |
| Test role context level setup. |
| test_get_roles_for_contextlevels() X-Ref |
| Test getting of role context levels |
| test_get_default_enrol_roles() X-Ref |
| Test default enrol roles. |
| test_get_role_users() X-Ref |
| Test getting of role users. |
| test_get_roles_used_in_context() X-Ref |
| Test used role query. |
| test_get_user_roles_in_course() X-Ref |
| Test roles used in course. |
| test_has_capability_and_friends() X-Ref |
| Test has_capability(), has_any_capability() and has_all_capabilities(). |
| test_guess_if_creator_will_have_course_capability() X-Ref |
| Test if course creator future capability lookup works. |
| test_require_capability() X-Ref |
| Test require_capability() exceptions. |
| test_get_enrolled_sql_different_course() X-Ref |
| Test that enrolled users SQL does not return any values for users in other courses. |
| test_get_enrolled_sql_role_only() X-Ref |
| Test that enrolled users SQL does not return any values for role assignments without an enrolment. |
| test_get_enrolled_sql_multiple_enrolments() X-Ref |
| Test that multiple enrolments for the same user are counted correctly. |
| get_enrolled_sql_provider() X-Ref |
| No description |
| test_get_enrolled_sql_course($users, $counts) X-Ref |
| test_permission_evaluation() X-Ref |
| A small functional test of permission evaluations. |
| test_update_capabilities() X-Ref |
| Test updating of role capabilities during upgrade |
| test_reset_role_capabilities() X-Ref |
| Tests reset_role_capabilities function. |
| test_count_role_users() X-Ref |
| Tests count_role_users function. |
Class: context_inspection - X-Ref
Context caching fixture| test_context_cache_size() X-Ref |
| No description |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |