Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 401 and 402] [Versions 401 and 403]

Contains the event tests for the module assign.

Copyright: 2014 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 1584 lines (63 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


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_submission_removed()   X-Ref
Test submission_removed event.


test_team_submission_removed()   X-Ref
Test submission_removed event when a team submission is removed.


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_on_update()   X-Ref
Test submission_status_updated event when a submission is updated.


test_submission_status_updated_on_remove()   X-Ref
Test submission_status_updated event when a submission is removed.


test_team_submission_status_updated_on_remove()   X-Ref
Test submission_status_updated event when a team submission is removed.


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