| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Unit tests for event observers.
| Copyright: | 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com> |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 634 lines (25 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
tool_monitor_eventobservers_testcase:: (11 methods):
setUp()
test_course_deleted()
test_flush()
test_process_event()
test_multiple_notification_not_sent()
run_adhock_tasks()
verify_processed_data()
verify_message_not_sent_yet()
test_replace_placeholders()
test_user_deleted()
test_course_module_deleted()
Class: tool_monitor_eventobservers_testcase - X-Ref
Class tool_monitor_eventobservers_testcase| setUp() X-Ref |
| Set up method. |
| test_course_deleted() X-Ref |
| Test observer for course delete event. |
| test_flush() X-Ref |
| This tests if writing of the events to the table tool_monitor_events is working fine. |
| test_process_event() X-Ref |
| Test the notification sending features. |
| test_multiple_notification_not_sent() X-Ref |
| Test that same events are not used twice to calculate conditions for a single subscription. |
| run_adhock_tasks() X-Ref |
| Run adhoc tasks. |
| verify_processed_data(phpunit_message_sink $msgsink) X-Ref |
| Verify that task was scheduled and a message was sent as expected. param: phpunit_message_sink $msgsink Message sink |
| verify_message_not_sent_yet(phpunit_message_sink $msgsink) X-Ref |
| Verify that a message was not sent. param: phpunit_message_sink $msgsink Message sink |
| test_replace_placeholders() X-Ref |
| Tests for replace_placeholders method. |
| test_user_deleted() X-Ref |
| Test observer for user delete event. |
| test_course_module_deleted() X-Ref |
| Test observer for course module delete event. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |