[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
The module forums external functions unit tests
Copyright: | 2013 Andrew Nicols |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 563 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_forum_maildigest_testcase:: (14 methods):
setUp()
tearDown()
helper_setup_user_in_course()
helper_force_digest_mail_times()
helper_run_cron_check_count()
test_set_maildigest()
test_get_user_digest_options_default()
test_get_user_digest_options_sorting()
test_cron_no_posts()
test_cron_profile_single_mails()
test_cron_profile_digest_email()
test_cron_mixed_email_1()
test_cron_mixed_email_2()
test_cron_forum_digest_email()
Class: mod_forum_maildigest_testcase - X-Ref
setUp() X-Ref |
Set up message and mail sinks, and set up other requirements for the cron to be tested here. |
tearDown() X-Ref |
Clear the message sinks set up in this test. |
helper_setup_user_in_course() X-Ref |
Setup a user, course, and forums. return: stdClass containing the list of forums, courses, forumids, |
helper_force_digest_mail_times() X-Ref |
Helper to falsify all forum post records for a digest run. |
helper_run_cron_check_count($expected, $individualcount, $digestcount) X-Ref |
Run the forum cron, and check that the specified post was sent the specified number of times. param: integer $expected The number of times that the post should have been sent param: integer $individualcount The number of individual messages sent param: integer $digestcount The number of digest messages sent |
test_set_maildigest() X-Ref |
No description |
test_get_user_digest_options_default() X-Ref |
No description |
test_get_user_digest_options_sorting() X-Ref |
No description |
test_cron_no_posts() X-Ref |
No description |
test_cron_profile_single_mails() X-Ref |
Sends several notifications to one user as: * single messages based on a user profile setting. |
test_cron_profile_digest_email() X-Ref |
Sends several notifications to one user as: * daily digests coming from the user profile setting. |
test_cron_mixed_email_1() X-Ref |
Sends several notifications to one user as: * daily digests coming from the per-forum setting; and * single e-mails from the profile setting. |
test_cron_mixed_email_2() X-Ref |
Sends several notifications to one user as: * single e-mails from the per-forum setting; and * daily digests coming from the per-user setting. |
test_cron_forum_digest_email() X-Ref |
Sends several notifications to one user as: * daily digests coming from the per-forum setting. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |