[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/tests/ -> externallib_test.php (summary)

(no description)

File Size: 2492 lines (113 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_assign_external_testcase:: (43 methods):
  setUp()
  test_get_grades()
  test_get_assignments()
  test_get_assignments_with_submissionstatement()
  test_get_submissions()
  test_get_user_flags()
  test_get_user_mappings()
  test_lock_submissions()
  test_unlock_submissions()
  test_submit_for_grading()
  test_save_user_extensions()
  test_reveal_identities()
  test_revert_submissions_to_draft()
  test_save_submission()
  test_save_grade()
  test_save_grades_with_advanced_grading()
  test_save_grades_with_group_submission()
  test_copy_previous_attempt()
  test_set_user_flags()
  test_view_grading_table_invalid_instance()
  test_view_grading_table_not_enrolled()
  test_view_grading_table_correct()
  test_view_grading_table_without_capability()
  test_subplugins_availability()
  test_view_submission_status()
  create_submission_for_testing_status()
  test_get_submission_status_in_draft_status()
  test_get_submission_status_in_submission_status()
  test_get_submission_status_in_submission_status_for_teacher()
  test_get_submission_status_in_reopened_status()
  test_get_submission_status_access_control()
  test_get_participant_no_assignment()
  test_get_participant_no_view_capability()
  test_get_participant_no_grade_capability()
  test_get_participant_no_participant()
  test_get_participant_blind_marking()
  test_get_participant_no_user()
  test_get_participant_full_details()
  test_get_participant_group_submission()
  test_list_participants_user_info_with_special_characters()
  test_list_participants_returns_user_property_types()
  create_assign_with_student_and_teacher()
  test_view_assign()


Class: mod_assign_external_testcase  - X-Ref

External mod assign functions unit tests

setUp()   X-Ref
Tests set up


test_get_grades()   X-Ref
Test get_grades


test_get_assignments()   X-Ref
Test get_assignments


test_get_assignments_with_submissionstatement()   X-Ref
Test get_assignments with submissionstatement.


test_get_submissions()   X-Ref
Test get_submissions


test_get_user_flags()   X-Ref
Test get_user_flags


test_get_user_mappings()   X-Ref
Test get_user_mappings


test_lock_submissions()   X-Ref
Test lock_submissions


test_unlock_submissions()   X-Ref
Test unlock_submissions


test_submit_for_grading()   X-Ref
Test submit_for_grading


test_save_user_extensions()   X-Ref
Test save_user_extensions


test_reveal_identities()   X-Ref
Test reveal_identities


test_revert_submissions_to_draft()   X-Ref
Test revert_submissions_to_draft


test_save_submission()   X-Ref
Test save_submission


test_save_grade()   X-Ref
Test save_grade


test_save_grades_with_advanced_grading()   X-Ref
Test save grades with advanced grading data


test_save_grades_with_group_submission()   X-Ref
Test save grades for a team submission


test_copy_previous_attempt()   X-Ref
Test copy_previous_attempt


test_set_user_flags()   X-Ref
Test set_user_flags


test_view_grading_table_invalid_instance()   X-Ref
Test view_grading_table


test_view_grading_table_not_enrolled()   X-Ref
Test view_grading_table


test_view_grading_table_correct()   X-Ref
Test view_grading_table


test_view_grading_table_without_capability()   X-Ref
Test view_grading_table


test_subplugins_availability()   X-Ref
Test subplugins availability


test_view_submission_status()   X-Ref
Test test_view_submission_status


create_submission_for_testing_status($submitforgrading = false)   X-Ref
Create a submission for testing the get_submission_status function.

param: boolean $submitforgrading whether to submit for grading the submission
return: array an array containing all the required data for testing

test_get_submission_status_in_draft_status()   X-Ref
Test get_submission_status for a draft submission.


test_get_submission_status_in_submission_status()   X-Ref
Test get_submission_status for a submitted submission.


test_get_submission_status_in_submission_status_for_teacher()   X-Ref
Test get_submission_status using the teacher role.


test_get_submission_status_in_reopened_status()   X-Ref
Test get_submission_status for a reopened submission.


test_get_submission_status_access_control()   X-Ref
Test access control for get_submission_status.


test_get_participant_no_assignment()   X-Ref
get_participant should throw an excaption if the requested assignment doesn't exist.


test_get_participant_no_view_capability()   X-Ref
get_participant should throw a require_login_exception if the user doesn't have access
to view assignments.


test_get_participant_no_grade_capability()   X-Ref
get_participant should throw a required_capability_exception if the user doesn't have access
to view assignment grades.


test_get_participant_no_participant()   X-Ref
get_participant should throw an exception if the user isn't enrolled in the course.


test_get_participant_blind_marking()   X-Ref
get_participant should return a summarised list of details with a different fullname if blind
marking is on for the requested assignment.


test_get_participant_no_user()   X-Ref
get_participant should return a summarised list of details if requested.


test_get_participant_full_details()   X-Ref
get_participant should return user details if requested.


test_get_participant_group_submission()   X-Ref
get_participant should return group details if a group submission was
submitted.


test_list_participants_user_info_with_special_characters()   X-Ref
Test for mod_assign_external::list_participants().


test_list_participants_returns_user_property_types()   X-Ref
Test for the type of the user-related properties in mod_assign_external::list_participants_returns().


create_assign_with_student_and_teacher($params = array()   X-Ref
Create a a course, assignment module instance, student and teacher and enrol them in
the course.

param: array $params parameters to be provided to the assignment module creation
return: array containing the course, assignment module, student and teacher

test_view_assign()   X-Ref
Test test_view_assign




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1