Differences Between: [Versions 311 and 402] [Versions 311 and 403]
External tests.
Copyright: | 2016 Frédéric Massart - FMCorz.net |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 2882 lines (132 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
external_test:: (80 methods):
setUp()
create_competency_framework()
create_plan()
create_template()
update_template()
update_plan()
update_competency_framework()
create_competency()
update_competency()
test_create_competency_frameworks_with_read_permissions()
test_create_competency_frameworks_with_read_permissions_in_category()
test_create_competency_frameworks_with_manage_permissions()
test_create_competency_frameworks_with_manage_permissions_in_category()
test_create_competency_frameworks_with_nasty_data()
test_read_competency_frameworks_with_manage_permissions()
test_read_competency_frameworks_with_manage_permissions_in_category()
test_read_competency_frameworks_with_read_permissions()
test_read_competency_frameworks_with_read_permissions_in_category()
test_delete_competency_frameworks_with_manage_permissions()
test_delete_competency_frameworks_with_manage_permissions_in_category()
test_delete_competency_frameworks_with_read_permissions()
test_update_competency_frameworks_with_manage_permissions()
test_update_competency_frameworks_with_manage_permissions_in_category()
test_update_framework_scale()
test_update_competency_frameworks_with_read_permissions()
test_list_and_count_competency_frameworks_with_manage_permissions()
test_list_competency_frameworks_with_query()
test_list_and_count_competency_frameworks_with_read_permissions()
test_create_competency_with_read_permissions()
test_create_competency_with_manage_permissions()
test_create_competency_with_manage_permissions_in_category()
test_create_competency_with_nasty_data()
test_read_competencies_with_manage_permissions()
test_read_competencies_with_manage_permissions_in_category()
test_read_competencies_with_read_permissions()
test_read_competencies_with_read_permissions_in_category()
test_delete_competency_with_manage_permissions()
test_delete_competency_with_manage_permissions_in_category()
test_delete_competency_with_read_permissions()
test_update_competency_with_manage_permissions()
test_update_competency_with_manage_permissions_in_category()
test_update_competency_with_read_permissions()
test_count_competencies_with_filters()
test_list_and_count_competencies_with_manage_permissions()
test_list_and_count_competencies_with_read_permissions()
test_search_competencies_with_read_permissions()
test_create_and_update_plans()
test_complete_plan()
test_reopen_plan()
test_read_plans()
test_delete_plans()
test_delete_plan_removes_relations()
test_list_plan_competencies()
test_add_competency_to_template()
test_remove_competency_from_template()
test_reorder_template_competencies()
test_duplicate_learning_plan_template()
test_get_scale_values()
test_create_template()
test_read_template()
test_update_template()
test_delete_template()
test_list_templates()
test_list_templates_using_competency()
test_count_templates()
test_add_related_competency()
test_remove_related_competency()
test_search_competencies_including_related()
test_add_competency_to_plan()
test_remove_competency_from_plan()
test_reorder_plan_competency()
test_fix_sortorder_when_creating_competency()
test_fix_sortorder_when_delete_competency()
test_fix_sortorder_when_moving_competency()
test_grade_competency()
test_grade_competency_in_course()
test_grade_competency_in_plan()
test_update_course_competency_settings()
test_list_competencies_with_filter()
test_list_competencies_with_course_module()
Class: external_test - X-Ref
External testcase.setUp() X-Ref |
Setup function- we will create a course and add an assign instance to it. |
create_competency_framework($number = 1, $system = true) X-Ref |
No description |
create_plan($number, $userid, $templateid, $status, $duedate) X-Ref |
No description |
create_template($number, $system) X-Ref |
No description |
update_template($templateid, $number) X-Ref |
No description |
update_plan($planid, $number, $userid, $templateid, $status, $duedate) X-Ref |
No description |
update_competency_framework($id, $number = 1, $system = true) X-Ref |
No description |
create_competency($number, $frameworkid) X-Ref |
No description |
update_competency($id, $number) X-Ref |
No description |
test_create_competency_frameworks_with_read_permissions() X-Ref |
Test we can't create a competency framework with only read permissions. |
test_create_competency_frameworks_with_read_permissions_in_category() X-Ref |
Test we can't create a competency framework with only read permissions. |
test_create_competency_frameworks_with_manage_permissions() X-Ref |
Test we can create a competency framework with manage permissions. |
test_create_competency_frameworks_with_manage_permissions_in_category() X-Ref |
Test we can create a competency framework with manage permissions. |
test_create_competency_frameworks_with_nasty_data() X-Ref |
Test we cannot create a competency framework with nasty data. |
test_read_competency_frameworks_with_manage_permissions() X-Ref |
Test we can read a competency framework with manage permissions. |
test_read_competency_frameworks_with_manage_permissions_in_category() X-Ref |
Test we can read a competency framework with manage permissions. |
test_read_competency_frameworks_with_read_permissions() X-Ref |
Test we can read a competency framework with read permissions. |
test_read_competency_frameworks_with_read_permissions_in_category() X-Ref |
Test we can read a competency framework with read permissions. |
test_delete_competency_frameworks_with_manage_permissions() X-Ref |
Test we can delete a competency framework with manage permissions. |
test_delete_competency_frameworks_with_manage_permissions_in_category() X-Ref |
Test we can delete a competency framework with manage permissions. |
test_delete_competency_frameworks_with_read_permissions() X-Ref |
Test we can delete a competency framework with read permissions. |
test_update_competency_frameworks_with_manage_permissions() X-Ref |
Test we can update a competency framework with manage permissions. |
test_update_competency_frameworks_with_manage_permissions_in_category() X-Ref |
Test we can update a competency framework with manage permissions. |
test_update_framework_scale() X-Ref |
No description |
test_update_competency_frameworks_with_read_permissions() X-Ref |
Test we can update a competency framework with read permissions. |
test_list_and_count_competency_frameworks_with_manage_permissions() X-Ref |
Test we can list and count competency frameworks with manage permissions. |
test_list_competency_frameworks_with_query() X-Ref |
No description |
test_list_and_count_competency_frameworks_with_read_permissions() X-Ref |
Test we can list and count competency frameworks with read permissions. |
test_create_competency_with_read_permissions() X-Ref |
Test we can't create a competency with only read permissions. |
test_create_competency_with_manage_permissions() X-Ref |
Test we can create a competency with manage permissions. |
test_create_competency_with_manage_permissions_in_category() X-Ref |
Test we can create a competency with manage permissions. |
test_create_competency_with_nasty_data() X-Ref |
Test we cannot create a competency with nasty data. |
test_read_competencies_with_manage_permissions() X-Ref |
Test we can read a competency with manage permissions. |
test_read_competencies_with_manage_permissions_in_category() X-Ref |
Test we can read a competency with manage permissions. |
test_read_competencies_with_read_permissions() X-Ref |
Test we can read a competency with read permissions. |
test_read_competencies_with_read_permissions_in_category() X-Ref |
Test we can read a competency with read permissions. |
test_delete_competency_with_manage_permissions() X-Ref |
Test we can delete a competency with manage permissions. |
test_delete_competency_with_manage_permissions_in_category() X-Ref |
Test we can delete a competency with manage permissions. |
test_delete_competency_with_read_permissions() X-Ref |
Test we can delete a competency with read permissions. |
test_update_competency_with_manage_permissions() X-Ref |
Test we can update a competency with manage permissions. |
test_update_competency_with_manage_permissions_in_category() X-Ref |
Test we can update a competency with manage permissions. |
test_update_competency_with_read_permissions() X-Ref |
Test we can update a competency with read permissions. |
test_count_competencies_with_filters() X-Ref |
Test count competencies with filters. |
test_list_and_count_competencies_with_manage_permissions() X-Ref |
Test we can list and count competencies with manage permissions. |
test_list_and_count_competencies_with_read_permissions() X-Ref |
Test we can list and count competencies with read permissions. |
test_search_competencies_with_read_permissions() X-Ref |
Test we can search for competencies. |
test_create_and_update_plans() X-Ref |
Test plans creation and updates. |
test_complete_plan() X-Ref |
Test complete plan. |
test_reopen_plan() X-Ref |
Test reopen plan. |
test_read_plans() X-Ref |
Test that we can read plans. |
test_delete_plans() X-Ref |
No description |
test_delete_plan_removes_relations() X-Ref |
No description |
test_list_plan_competencies() X-Ref |
No description |
test_add_competency_to_template() X-Ref |
No description |
test_remove_competency_from_template() X-Ref |
No description |
test_reorder_template_competencies() X-Ref |
Test we can re-order competency frameworks. |
test_duplicate_learning_plan_template() X-Ref |
Test we can duplicate learning plan template. |
test_get_scale_values() X-Ref |
Test that we can return scale values for a scale with the scale ID. |
test_create_template() X-Ref |
Create a template. |
test_read_template() X-Ref |
Read a template. |
test_update_template() X-Ref |
Update a template. |
test_delete_template() X-Ref |
Delete a template. |
test_list_templates() X-Ref |
List templates. |
test_list_templates_using_competency() X-Ref |
List templates using competency. |
test_count_templates() X-Ref |
No description |
test_add_related_competency() X-Ref |
Test that we can add related competencies. return: void |
test_remove_related_competency() X-Ref |
Test that we can remove related competencies. return: void |
test_search_competencies_including_related() X-Ref |
Test that we can search and include related competencies. return: void |
test_add_competency_to_plan() X-Ref |
Test that we can add competency to plan if we have the right capability. return: void |
test_remove_competency_from_plan() X-Ref |
Test that we can add competency to plan if we have the right capability. return: void |
test_reorder_plan_competency() X-Ref |
Test that we can add competency to plan if we have the right capability. return: void |
test_fix_sortorder_when_creating_competency() X-Ref |
Test resolving sortorder when we creating competency. |
test_fix_sortorder_when_delete_competency() X-Ref |
Test resolving sortorder when we delete competency. |
test_fix_sortorder_when_moving_competency() X-Ref |
Test resolving sortorder when moving a competency. |
test_grade_competency() X-Ref |
No description |
test_grade_competency_in_course() X-Ref |
No description |
test_grade_competency_in_plan() X-Ref |
No description |
test_update_course_competency_settings() X-Ref |
Test update course competency settings. |
test_list_competencies_with_filter() X-Ref |
Test that we can list competencies with a filter. return: void |
test_list_competencies_with_course_module() X-Ref |
Test that we can list competencies with a course module. return: void |