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.

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

(no description)

File Size: 996 lines (42 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/tests/fixtures/event_fixtures.php

Defines 2 classes


Class: base_test  - X-Ref

Tests for event manager, base event and observers.

test_event_properties()   X-Ref
No description

test_event_properties_guessing()   X-Ref
No description

test_observers_parsing()   X-Ref
No description

test_normal_dispatching()   X-Ref
No description

test_event_sink()   X-Ref
No description

test_ignore_exceptions()   X-Ref
No description

test_external_buffer()   X-Ref
No description

test_rollback()   X-Ref
No description

test_forced_rollback()   X-Ref
No description

test_deprecated()   X-Ref
No description

test_legacy()   X-Ref
No description

test_restore_event()   X-Ref
No description

test_trigger_problems()   X-Ref
No description

test_bad_events()   X-Ref
No description

test_problematic_events()   X-Ref
No description

test_record_snapshots()   X-Ref
No description

test_get_name()   X-Ref
No description

test_iteration()   X-Ref
No description

test_context_not_used()   X-Ref
No description

test_get_all_observers()   X-Ref
Test that all observer information is returned correctly.


test_get_explanation()   X-Ref
Test formatting of the get_explanation method.
This formats the information from an events class docblock.


test_get_static_info()   X-Ref
Test that general information about an event is returned
by the get_static_info() method.


test_observe_parent_event()   X-Ref
This tests the internal method of \core\event\manager::get_observing_classes.

What we are testing is if we can subscribe to a parent event class, instead of only
the base event class or the final, implemented event class.  This enables us to subscribe
to things like all course module view events, all comment created events, etc.

Class: event  - X-Ref