Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

Events tests.

Copyright: 2016 Stephen Bourget
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 563 lines (21 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: events_test  - X-Ref

Unit tests for the blog events.

setUp()   X-Ref
Setup the tests.


test_blog_entry_created_event()   X-Ref
Test various blog related events.


test_blog_entry_updated_event()   X-Ref
Tests for event blog_entry_updated.


test_blog_entry_deleted_event()   X-Ref
Tests for event blog_entry_deleted.


test_blog_association_deleted_event()   X-Ref
Tests for event blog_association_deleted.


test_blog_association_created_event()   X-Ref
Tests for event blog_association_created.


test_blog_association_created_event_validations()   X-Ref
Tests for event blog_association_created validations.


test_blog_entries_viewed_event()   X-Ref
Tests for event blog_entries_viewed.


test_blog_comment_created_event()   X-Ref
Test comment_created event.


test_blog_comment_deleted_event()   X-Ref
Test comment_deleted event.


test_external_blog_added_event()   X-Ref
Test external blog added event.

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

test_external_blog_updated_event()   X-Ref
Test external blog updated event.

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

test_external_blog_removed_event()   X-Ref
Test external blog removed event.

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

test_external_blogs_viewed_event()   X-Ref
Test external blogs viewed event.

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