See Release Notes
Long Term Support Release
Differences Between: [Versions 311 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]
Workshop module external functions tests
Copyright: | 2017 Juan Leyva <juan@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1945 lines (89 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
external_test:: (62 methods):
setUp()
test_mod_workshop_get_workshops_by_courses()
test_mod_workshop_get_workshop_access_information_student()
test_mod_workshop_get_workshop_access_information_teacher()
test_mod_workshop_get_user_plan_student()
test_mod_workshop_get_user_plan_teacher()
test_view_workshop_invalid_id()
test_view_workshop_user_not_enrolled()
test_view_workshop_user_student()
test_view_workshop_user_missing_capabilities()
test_add_submission()
test_add_submission_invalid_phase()
test_add_submission_empty_title()
test_add_submission_already_added()
create_test_submission()
test_update_submission()
test_update_submission_of_other_user()
test_update_submission_invalid_phase()
test_update_submission_empty_title()
test_delete_submission()
test_delete_submission_with_assessments()
test_delete_submission_invalid_phase()
test_delete_submission_as_teacher()
test_delete_submission_other_user()
test_get_submissions_student()
test_get_submissions_published_student()
test_get_submissions_from_student_with_feedback_from_teacher()
test_get_submissions_from_students_as_teacher()
test_get_submission_student()
test_get_submission_i_reviewed()
test_get_submission_other_student()
test_get_submission_published_student()
test_get_submission_from_student_with_feedback_from_teacher()
test_get_submission_from_students_as_teacher()
test_get_submission_assessments_student()
test_get_submission_assessments_invalid_phase()
test_get_submission_assessments_teacher()
test_get_assessment_author()
test_get_assessment_reviewer()
test_get_assessment_teacher()
test_get_assessment_student_invalid_phase()
test_get_assessment_student_invalid_user()
test_get_assessment_form_definition_reviewer_new_assessment()
test_get_assessment_form_definition_teacher_new_assessment()
test_get_assessment_form_definition_invalid_phase()
test_get_reviewer_assessments()
test_get_reviewer_assessments_other_student()
test_get_reviewer_assessments_invalid_phase()
test_update_assessment()
test_get_grades()
test_get_grades_other_student()
test_evaluate_assessment()
test_evaluate_assessment_ignore_parameters()
test_evaluate_assessment_no_permissions()
test_get_grades_report()
test_get_grades_report_invalid_phase()
test_get_grades_report_missing_permissions()
test_view_submission()
test_evaluate_submission()
test_evaluate_submission_invalid_phase_for_override()
test_evaluate_submission_no_permissions()
test_evaluate_submission_invalid_grade()
Class: external_test - X-Ref
Workshop module external functions testssetUp() X-Ref |
Set up for every test |
test_mod_workshop_get_workshops_by_courses() X-Ref |
Test test_mod_workshop_get_workshops_by_courses |
test_mod_workshop_get_workshop_access_information_student() X-Ref |
Test mod_workshop_get_workshop_access_information for students. |
test_mod_workshop_get_workshop_access_information_teacher() X-Ref |
Test mod_workshop_get_workshop_access_information for teachers. |
test_mod_workshop_get_user_plan_student() X-Ref |
Test mod_workshop_get_user_plan for students. |
test_mod_workshop_get_user_plan_teacher() X-Ref |
Test mod_workshop_get_user_plan for teachers. |
test_view_workshop_invalid_id() X-Ref |
Test test_view_workshop invalid id. |
test_view_workshop_user_not_enrolled() X-Ref |
Test test_view_workshop user not enrolled. |
test_view_workshop_user_student() X-Ref |
Test test_view_workshop user student. |
test_view_workshop_user_missing_capabilities() X-Ref |
Test test_view_workshop user missing capabilities. |
test_add_submission() X-Ref |
Test test_add_submission. |
test_add_submission_invalid_phase() X-Ref |
Test test_add_submission invalid phase. |
test_add_submission_empty_title() X-Ref |
Test test_add_submission empty title. |
test_add_submission_already_added() X-Ref |
Test test_add_submission already added. |
create_test_submission($user) X-Ref |
Helper method to create a submission for testing for the given user. param: int $user the submission will be created by this student. return: int the submission id |
test_update_submission() X-Ref |
Test test_update_submission. |
test_update_submission_of_other_user() X-Ref |
Test test_update_submission belonging to other user. |
test_update_submission_invalid_phase() X-Ref |
Test test_update_submission invalid phase. |
test_update_submission_empty_title() X-Ref |
Test test_update_submission empty title. |
test_delete_submission() X-Ref |
Test test_delete_submission. |
test_delete_submission_with_assessments() X-Ref |
Test test_delete_submission_with_assessments. |
test_delete_submission_invalid_phase() X-Ref |
Test test_delete_submission_invalid_phase. |
test_delete_submission_as_teacher() X-Ref |
Test test_delete_submission_as_teacher. |
test_delete_submission_other_user() X-Ref |
Test test_delete_submission_other_user. |
test_get_submissions_student() X-Ref |
Test test_get_submissions_student. |
test_get_submissions_published_student() X-Ref |
Test test_get_submissions_published_student. |
test_get_submissions_from_student_with_feedback_from_teacher() X-Ref |
Test test_get_submissions_from_student_with_feedback_from_teacher. |
test_get_submissions_from_students_as_teacher() X-Ref |
Test test_get_submissions_from_students_as_teacher. |
test_get_submission_student() X-Ref |
Test test_get_submission_student. |
test_get_submission_i_reviewed() X-Ref |
Test test_get_submission_i_reviewed. |
test_get_submission_other_student() X-Ref |
Test test_get_submission_other_student. |
test_get_submission_published_student() X-Ref |
Test test_get_submission_published_student. |
test_get_submission_from_student_with_feedback_from_teacher() X-Ref |
Test test_get_submission_from_student_with_feedback_from_teacher. |
test_get_submission_from_students_as_teacher() X-Ref |
Test test_get_submission_from_students_as_teacher. |
test_get_submission_assessments_student() X-Ref |
Test get_submission_assessments_student. |
test_get_submission_assessments_invalid_phase() X-Ref |
Test get_submission_assessments_invalid_phase. |
test_get_submission_assessments_teacher() X-Ref |
Test get_submission_assessments_teacher. |
test_get_assessment_author() X-Ref |
Test get_assessment_author. |
test_get_assessment_reviewer() X-Ref |
Test get_assessment_reviewer. |
test_get_assessment_teacher() X-Ref |
Test get_assessment_teacher. |
test_get_assessment_student_invalid_phase() X-Ref |
Test get_assessment_student_invalid_phase. |
test_get_assessment_student_invalid_user() X-Ref |
Test get_assessment_student_invalid_user. |
test_get_assessment_form_definition_reviewer_new_assessment() X-Ref |
Test get_assessment_form_definition_reviewer_new_assessment. |
test_get_assessment_form_definition_teacher_new_assessment() X-Ref |
Test get_assessment_form_definition_teacher_new_assessment. |
test_get_assessment_form_definition_invalid_phase() X-Ref |
Test get_assessment_form_definition_invalid_phase. |
test_get_reviewer_assessments() X-Ref |
Test get_reviewer_assessments. |
test_get_reviewer_assessments_other_student() X-Ref |
Test get_reviewer_assessments_other_student. |
test_get_reviewer_assessments_invalid_phase() X-Ref |
Test get_reviewer_assessments_invalid_phase. |
test_update_assessment() X-Ref |
Test update_assessment. |
test_get_grades() X-Ref |
Test get_grades. |
test_get_grades_other_student() X-Ref |
Test get_grades_other_student. |
test_evaluate_assessment() X-Ref |
Test evaluate_assessment. |
test_evaluate_assessment_ignore_parameters() X-Ref |
Test evaluate_assessment_ignore_parameters. |
test_evaluate_assessment_no_permissions() X-Ref |
Test evaluate_assessment_no_permissions. |
test_get_grades_report() X-Ref |
Test get_grades_report. |
test_get_grades_report_invalid_phase() X-Ref |
Test get_grades_report_invalid_phase. |
test_get_grades_report_missing_permissions() X-Ref |
Test get_grades_report_missing_permissions. |
test_view_submission() X-Ref |
Test test_view_submission. |
test_evaluate_submission() X-Ref |
Test evaluate_submission. |
test_evaluate_submission_invalid_phase_for_override() X-Ref |
Test evaluate_submission_invalid_phase_for_override. |
test_evaluate_submission_no_permissions() X-Ref |
Test evaluate_submission_no_permissions. |
test_evaluate_submission_invalid_grade() X-Ref |
Test evaluate_submission_invalid_grade. |