| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
The forum module mail generation tests.
| Copyright: | 2013 Andrew Nicols |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 1144 lines (48 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
mod_forum_mail_testcase:: (26 methods):
setUp()
tearDown()
helper_spoof_message_inbound_setup()
helper_create_users()
helper_post_to_forum()
helper_update_post_time()
helper_update_subscription_time()
helper_post_to_discussion()
helper_run_cron_check_count()
helper_run_cron_check_counts()
test_forced_subscription()
test_subscription_disabled()
test_automatic()
test_optional()
test_automatic_with_unsubscribed_user()
test_optional_with_subscribed_user()
test_automatic_with_unsubscribed_discussion()
test_optional_with_subscribed_discussion()
test_automatic_with_subscribed_discussion_in_unsubscribed_forum()
test_optional_with_unsubscribed_discussion_in_subscribed_forum()
test_forum_discussion_subscription_forum_unsubscribed_discussion_subscribed_after_post()
test_forum_message_inbound_multiple_posts()
test_long_subject()
test_subjects()
forum_post_email_templates_provider()
test_forum_post_email_templates()
Class: mod_forum_mail_testcase - X-Ref
| setUp() X-Ref |
| No description |
| tearDown() X-Ref |
| No description |
| helper_spoof_message_inbound_setup() X-Ref |
| Perform message inbound setup for the mod_forum reply handler. |
| helper_create_users($course, $count) X-Ref |
| Helper to create the required number of users in the specified course. Users are enrolled as students. param: stdClass $course The course object param: integer $count The number of users to create return: array The users created |
| helper_post_to_forum($forum, $author, $fields = array() X-Ref |
| Create a new discussion and post within the specified forum, as the specified author. param: stdClass $forum The forum to post in param: stdClass $author The author to post as param: array $fields any other fields in discussion (name, message, messageformat, ...) param: array An array containing the discussion object, and the post object |
| helper_update_post_time($post, $factor) X-Ref |
| Update the post time for the specified post by $factor. param: stdClass $post The post to update param: int $factor The amount to update by |
| helper_update_subscription_time($user, $discussion, $factor) X-Ref |
| Update the subscription time for the specified user/discussion by $factor. param: stdClass $user The user to update param: stdClass $discussion The discussion to update for this user param: int $factor The amount to update by |
| helper_post_to_discussion($forum, $discussion, $author) X-Ref |
| Create a new post within an existing discussion, as the specified author. param: stdClass $forum The forum to post in param: stdClass $discussion The discussion to post in param: stdClass $author The author to post as return: stdClass The forum post |
| helper_run_cron_check_count($post, $expected) X-Ref |
| Run the forum cron, and check that the specified post was sent the specified number of times. param: stdClass $post The forum post object param: integer $expected The number of times that the post should have been sent return: array An array of the messages caught by the message sink |
| helper_run_cron_check_counts($posts, $expected) X-Ref |
| Run the forum cron, and check that the specified posts were sent the specified number of times. param: stdClass $post The forum post object param: integer $expected The number of times that the post should have been sent return: array An array of the messages caught by the message sink |
| test_forced_subscription() X-Ref |
| No description |
| test_subscription_disabled() X-Ref |
| No description |
| test_automatic() X-Ref |
| No description |
| test_optional() X-Ref |
| No description |
| test_automatic_with_unsubscribed_user() X-Ref |
| No description |
| test_optional_with_subscribed_user() X-Ref |
| No description |
| test_automatic_with_unsubscribed_discussion() X-Ref |
| No description |
| test_optional_with_subscribed_discussion() X-Ref |
| No description |
| test_automatic_with_subscribed_discussion_in_unsubscribed_forum() X-Ref |
| No description |
| test_optional_with_unsubscribed_discussion_in_subscribed_forum() X-Ref |
| No description |
| test_forum_discussion_subscription_forum_unsubscribed_discussion_subscribed_after_post() X-Ref |
| Test that a user unsubscribed from a forum who has subscribed to a discussion, only receives posts made after they subscribed to the discussion. |
| test_forum_message_inbound_multiple_posts() X-Ref |
| No description |
| test_long_subject() X-Ref |
| No description |
| test_subjects() X-Ref |
| Test inital email and reply email subjects |
| forum_post_email_templates_provider() X-Ref |
| dataProvider for test_forum_post_email_templates(). |
| test_forum_post_email_templates($data) X-Ref |
| Verify forum emails body using templates to generate the expected results. param: array $data provider samples. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |