Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

Events tests.

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

Defines 1 class


Class: core_blog_events_testcase  - 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.