Differences Between: [Versions 311 and 402] [Versions 400 and 402] [Versions 401 and 402]
Tests for forum events.
Copyright: | 2014 Dan Poltawski <dan@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 2807 lines (113 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
events_test:: (79 methods):
setUp()
tearDown()
test_course_searched_searchterm_validation()
test_course_searched_context_validation()
test_course_searched()
test_discussion_created_forumid_validation()
test_discussion_created_context_validation()
test_discussion_created()
test_discussion_updated_forumid_validation()
test_discussion_updated_context_validation()
test_discussion_updated()
test_discussion_deleted_forumid_validation()
test_discussion_deleted_context_validation()
test_discussion_deleted()
test_discussion_moved_fromforumid_validation()
test_discussion_moved_toforumid_validation()
test_discussion_moved_context_validation()
test_discussion_moved()
test_discussion_viewed_context_validation()
test_discussion_viewed()
test_course_module_viewed_context_validation()
test_course_module_viewed()
test_subscription_created_forumid_validation()
test_subscription_created_relateduserid_validation()
test_subscription_created_contextlevel_validation()
test_subscription_created()
test_subscription_deleted_forumid_validation()
test_subscription_deleted_relateduserid_validation()
test_subscription_deleted_contextlevel_validation()
test_subscription_deleted()
test_readtracking_enabled_forumid_validation()
test_readtracking_enabled_relateduserid_validation()
test_readtracking_enabled_contextlevel_validation()
test_readtracking_enabled()
test_readtracking_disabled_forumid_validation()
test_readtracking_disabled_relateduserid_validation()
test_readtracking_disabled_contextlevel_validation()
test_readtracking_disabled()
test_subscribers_viewed_forumid_validation()
test_subscribers_viewed_contextlevel_validation()
test_subscribers_viewed()
test_user_report_viewed_reportmode_validation()
test_user_report_viewed_contextlevel_validation()
test_user_report_viewed_relateduserid_validation()
test_user_report_viewed()
test_post_created_postid_validation()
test_post_created_discussionid_validation()
test_post_created_forumid_validation()
test_post_created_forumtype_validation()
test_post_created_context_validation()
test_post_created()
test_post_created_single()
test_post_deleted_postid_validation()
test_post_deleted_discussionid_validation()
test_post_deleted_forumid_validation()
test_post_deleted_forumtype_validation()
test_post_deleted_context_validation()
test_post_deleted()
test_post_deleted_single()
test_post_updated_discussionid_validation()
test_post_updated_forumid_validation()
test_post_updated_forumtype_validation()
test_post_updated_context_validation()
test_post_updated()
test_post_updated_single()
test_discussion_subscription_created()
test_discussion_subscription_created_validation()
test_discussion_subscription_created_validation_contextlevel()
test_discussion_subscription_created_validation_discussion()
test_discussion_subscription_created_validation_forumid()
test_discussion_subscription_created_validation_relateduserid()
test_discussion_subscription_deleted()
test_discussion_subscription_deleted_validation()
test_discussion_subscription_deleted_validation_contextlevel()
test_discussion_subscription_deleted_validation_discussion()
test_discussion_subscription_deleted_validation_forumid()
test_discussion_subscription_deleted_validation_relateduserid()
test_forum_subscription_page_context_valid()
test_observers()
Class: events_test - X-Ref
Tests for forum events.setUp() X-Ref |
Tests set up. |
tearDown() X-Ref |
No description |
test_course_searched_searchterm_validation() X-Ref |
Ensure course_searched event validates that searchterm is set. |
test_course_searched_context_validation() X-Ref |
Ensure course_searched event validates that context is the correct level. |
test_course_searched() X-Ref |
Test course_searched event. |
test_discussion_created_forumid_validation() X-Ref |
Ensure discussion_created event validates that forumid is set. |
test_discussion_created_context_validation() X-Ref |
Ensure discussion_created event validates that the context is the correct level. |
test_discussion_created() X-Ref |
Test discussion_created event. |
test_discussion_updated_forumid_validation() X-Ref |
Ensure discussion_updated event validates that forumid is set. |
test_discussion_updated_context_validation() X-Ref |
Ensure discussion_created event validates that the context is the correct level. |
test_discussion_updated() X-Ref |
Test discussion_created event. |
test_discussion_deleted_forumid_validation() X-Ref |
Ensure discussion_deleted event validates that forumid is set. |
test_discussion_deleted_context_validation() X-Ref |
Ensure discussion_deleted event validates that context is of the correct level. |
test_discussion_deleted() X-Ref |
Test discussion_deleted event. |
test_discussion_moved_fromforumid_validation() X-Ref |
Ensure discussion_moved event validates that fromforumid is set. |
test_discussion_moved_toforumid_validation() X-Ref |
Ensure discussion_moved event validates that toforumid is set. |
test_discussion_moved_context_validation() X-Ref |
Ensure discussion_moved event validates that the context level is correct. |
test_discussion_moved() X-Ref |
Test discussion_moved event. |
test_discussion_viewed_context_validation() X-Ref |
Ensure discussion_viewed event validates that the contextlevel is correct. |
test_discussion_viewed() X-Ref |
Test discussion_viewed event. |
test_course_module_viewed_context_validation() X-Ref |
Ensure course_module_viewed event validates that the contextlevel is correct. |
test_course_module_viewed() X-Ref |
Test the course_module_viewed event. |
test_subscription_created_forumid_validation() X-Ref |
Ensure subscription_created event validates that the forumid is set. |
test_subscription_created_relateduserid_validation() X-Ref |
Ensure subscription_created event validates that the relateduserid is set. |
test_subscription_created_contextlevel_validation() X-Ref |
Ensure subscription_created event validates that the contextlevel is correct. |
test_subscription_created() X-Ref |
Test the subscription_created event. |
test_subscription_deleted_forumid_validation() X-Ref |
Ensure subscription_deleted event validates that the forumid is set. |
test_subscription_deleted_relateduserid_validation() X-Ref |
Ensure subscription_deleted event validates that the relateduserid is set. |
test_subscription_deleted_contextlevel_validation() X-Ref |
Ensure subscription_deleted event validates that the contextlevel is correct. |
test_subscription_deleted() X-Ref |
Test the subscription_deleted event. |
test_readtracking_enabled_forumid_validation() X-Ref |
Ensure readtracking_enabled event validates that the forumid is set. |
test_readtracking_enabled_relateduserid_validation() X-Ref |
Ensure readtracking_enabled event validates that the relateduserid is set. |
test_readtracking_enabled_contextlevel_validation() X-Ref |
Ensure readtracking_enabled event validates that the contextlevel is correct. |
test_readtracking_enabled() X-Ref |
Test the readtracking_enabled event. |
test_readtracking_disabled_forumid_validation() X-Ref |
Ensure readtracking_disabled event validates that the forumid is set. |
test_readtracking_disabled_relateduserid_validation() X-Ref |
Ensure readtracking_disabled event validates that the relateduserid is set. |
test_readtracking_disabled_contextlevel_validation() X-Ref |
Ensure readtracking_disabled event validates that the contextlevel is correct |
test_readtracking_disabled() X-Ref |
Test the readtracking_disabled event. |
test_subscribers_viewed_forumid_validation() X-Ref |
Ensure subscribers_viewed event validates that the forumid is set. |
test_subscribers_viewed_contextlevel_validation() X-Ref |
Ensure subscribers_viewed event validates that the contextlevel is correct. |
test_subscribers_viewed() X-Ref |
Test the subscribers_viewed event. |
test_user_report_viewed_reportmode_validation() X-Ref |
Ensure user_report_viewed event validates that the reportmode is set. |
test_user_report_viewed_contextlevel_validation() X-Ref |
Ensure user_report_viewed event validates that the contextlevel is correct. |
test_user_report_viewed_relateduserid_validation() X-Ref |
Ensure user_report_viewed event validates that the relateduserid is set. |
test_user_report_viewed() X-Ref |
Test the user_report_viewed event. |
test_post_created_postid_validation() X-Ref |
Ensure post_created event validates that the postid is set. |
test_post_created_discussionid_validation() X-Ref |
Ensure post_created event validates that the discussionid is set. |
test_post_created_forumid_validation() X-Ref |
Ensure post_created event validates that the forumid is set. |
test_post_created_forumtype_validation() X-Ref |
Ensure post_created event validates that the forumtype is set. |
test_post_created_context_validation() X-Ref |
Ensure post_created event validates that the contextlevel is correct. |
test_post_created() X-Ref |
Test the post_created event. |
test_post_created_single() X-Ref |
Test the post_created event for a single discussion forum. |
test_post_deleted_postid_validation() X-Ref |
Ensure post_deleted event validates that the postid is set. |
test_post_deleted_discussionid_validation() X-Ref |
Ensure post_deleted event validates that the discussionid is set. |
test_post_deleted_forumid_validation() X-Ref |
Ensure post_deleted event validates that the forumid is set. |
test_post_deleted_forumtype_validation() X-Ref |
Ensure post_deleted event validates that the forumtype is set. |
test_post_deleted_context_validation() X-Ref |
Ensure post_deleted event validates that the contextlevel is correct. |
test_post_deleted() X-Ref |
Test post_deleted event. |
test_post_deleted_single() X-Ref |
Test post_deleted event for a single discussion forum. |
test_post_updated_discussionid_validation() X-Ref |
Ensure post_updated event validates that the discussionid is set. |
test_post_updated_forumid_validation() X-Ref |
Ensure post_updated event validates that the forumid is set. |
test_post_updated_forumtype_validation() X-Ref |
Ensure post_updated event validates that the forumtype is set. |
test_post_updated_context_validation() X-Ref |
Ensure post_updated event validates that the contextlevel is correct. |
test_post_updated() X-Ref |
Test post_updated event. |
test_post_updated_single() X-Ref |
Test post_updated event. |
test_discussion_subscription_created() X-Ref |
Test discussion_subscription_created event. |
test_discussion_subscription_created_validation() X-Ref |
Test validation of discussion_subscription_created event. |
test_discussion_subscription_created_validation_contextlevel() X-Ref |
Test contextlevel validation of discussion_subscription_created event. |
test_discussion_subscription_created_validation_discussion() X-Ref |
Test discussion validation of discussion_subscription_created event. |
test_discussion_subscription_created_validation_forumid() X-Ref |
Test forumid validation of discussion_subscription_created event. |
test_discussion_subscription_created_validation_relateduserid() X-Ref |
Test relateduserid validation of discussion_subscription_created event. |
test_discussion_subscription_deleted() X-Ref |
Test discussion_subscription_deleted event. |
test_discussion_subscription_deleted_validation() X-Ref |
Test validation of discussion_subscription_deleted event. |
test_discussion_subscription_deleted_validation_contextlevel() X-Ref |
Test contextlevel validation of discussion_subscription_deleted event. |
test_discussion_subscription_deleted_validation_discussion() X-Ref |
Test discussion validation of discussion_subscription_deleted event. |
test_discussion_subscription_deleted_validation_forumid() X-Ref |
Test forumid validation of discussion_subscription_deleted event. |
test_discussion_subscription_deleted_validation_relateduserid() X-Ref |
Test relateduserid validation of discussion_subscription_deleted event. |
test_forum_subscription_page_context_valid() X-Ref |
Test that the correct context is used in the events when subscribing users. |
test_observers() X-Ref |
Test mod_forum_observer methods. |