Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: events_test  - X-Ref

Contains the event tests for the module assign.

test_base_event()   X-Ref
Basic tests for the submission_created() abstract class.


test_submission_created()   X-Ref
Basic tests for the submission_created() abstract class.


test_submission_updated()   X-Ref
Basic tests for the submission_updated() abstract class.


test_extension_granted()   X-Ref
No description

test_submission_locked()   X-Ref
No description

test_identities_revealed()   X-Ref
No description

test_submission_status_viewed()   X-Ref
Test the submission_status_viewed event.


test_submission_status_updated()   X-Ref
No description

test_marker_updated()   X-Ref
No description

test_workflow_state_updated()   X-Ref
No description

test_submission_duplicated()   X-Ref
No description

test_submission_unlocked()   X-Ref
No description

test_submission_graded()   X-Ref
No description

test_submission_viewed()   X-Ref
Test the submission_viewed event.


test_feedback_viewed()   X-Ref
Test the feedback_viewed event.


test_grading_form_viewed()   X-Ref
Test the grading_form_viewed event.


test_grading_table_viewed()   X-Ref
Test the grading_table_viewed event.


test_submission_form_viewed()   X-Ref
Test the submission_form_viewed event.


test_submission_confirmation_form_viewed()   X-Ref
Test the submission_form_viewed event.


test_reveal_identities_confirmation_page_viewed()   X-Ref
Test the reveal_identities_confirmation_page_viewed event.


test_statement_accepted()   X-Ref
Test the statement_accepted event.


test_batch_set_workflow_state_viewed()   X-Ref
Test the batch_set_workflow_state_viewed event.


test_batch_set_marker_allocation_viewed()   X-Ref
Test the batch_set_marker_allocation_viewed event.


test_user_override_created()   X-Ref
Test the user override created event.

There is no external API for creating a user override, so the unit test will simply
create and trigger the event and ensure the event data is returned as expected.

test_group_override_created()   X-Ref
Test the group override created event.

There is no external API for creating a group override, so the unit test will simply
create and trigger the event and ensure the event data is returned as expected.

test_user_override_updated()   X-Ref
Test the user override updated event.

There is no external API for updating a user override, so the unit test will simply
create and trigger the event and ensure the event data is returned as expected.

test_group_override_updated()   X-Ref
Test the group override updated event.

There is no external API for updating a group override, so the unit test will simply
create and trigger the event and ensure the event data is returned as expected.

test_user_override_deleted()   X-Ref
Test the user override deleted event.


test_group_override_deleted()   X-Ref
Test the group override deleted event.


test_course_module_viewed()   X-Ref
Test the course module viewed event.


test_anonymous_events()   X-Ref
Test that all events generated with blindmarking enabled are anonymous