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 401 and 402] [Versions 401 and 403]

Events tests.

Copyright: 2016 Stephen Bourget
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 585 lines (22 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.