[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
The module forums tests
Copyright: | 2013 Frédéric Massart |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1321 lines (60 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_forum_subscriptions_testcase:: (24 methods):
setUp()
tearDown()
helper_create_users()
helper_post_to_forum()
test_subscription_modes()
test_unsubscribable_forums()
test_forum_subscribe_toggle_as_other()
test_forum_discussion_subscription_forum_unsubscribed()
test_forum_discussion_subscription_forum_subscribed()
test_forum_discussion_subscription_forum_unsubscribed_discussion_subscribed()
test_forum_discussion_subscription_forum_subscribed_discussion_unsubscribed()
test_forum_discussion_toggle_forum_subscribed()
test_forum_discussion_toggle_forum_unsubscribed()
test_fetch_subscribed_users_subscriptions()
test_fetch_subscribed_users_forced()
test_fetch_subscribed_users_discussion_subscriptions()
test_force_subscribed_to_forum()
test_subscription_cache_prefill()
test_subscription_cache_fill()
test_discussion_subscription_cache_fill_for_course()
test_discussion_subscription_cache_prefill()
test_discussion_subscription_cache_fill()
test_forum_subscribe_toggle_as_other_repeat_subscriptions()
test_is_subscribed_cm()
Class: mod_forum_subscriptions_testcase - X-Ref
setUp() X-Ref |
Test setUp. |
tearDown() X-Ref |
Test tearDown. |
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) 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 An array containing the discussion object, and the post object |
test_subscription_modes() X-Ref |
No description |
test_unsubscribable_forums() X-Ref |
Test fetching unsubscribable forums. |
test_forum_subscribe_toggle_as_other() X-Ref |
Test that toggling the forum-level subscription for a different user does not affect their discussion-level subscriptions. |
test_forum_discussion_subscription_forum_unsubscribed() X-Ref |
Test that a user unsubscribed from a forum is not subscribed to it's discussions by default. |
test_forum_discussion_subscription_forum_subscribed() X-Ref |
Test that the act of subscribing to a forum subscribes the user to it's discussions by default. |
test_forum_discussion_subscription_forum_unsubscribed_discussion_subscribed() X-Ref |
Test that a user unsubscribed from a forum can be subscribed to a discussion. |
test_forum_discussion_subscription_forum_subscribed_discussion_unsubscribed() X-Ref |
Test that a user subscribed to a forum can be unsubscribed from a discussion. |
test_forum_discussion_toggle_forum_subscribed() X-Ref |
Test the effect of toggling the discussion subscription status when subscribed to the forum. |
test_forum_discussion_toggle_forum_unsubscribed() X-Ref |
Test the effect of toggling the discussion subscription status when unsubscribed from the forum. |
test_fetch_subscribed_users_subscriptions() X-Ref |
Test that the correct users are returned when fetching subscribed users from a forum where users can choose to subscribe and unsubscribe. |
test_fetch_subscribed_users_forced() X-Ref |
Test that the correct users are returned hwen fetching subscribed users from a forum where users are forcibly subscribed. |
test_fetch_subscribed_users_discussion_subscriptions() X-Ref |
Test that unusual combinations of discussion subscriptions do not affect the subscribed user list. |
test_force_subscribed_to_forum() X-Ref |
Test whether a user is force-subscribed to a forum. |
test_subscription_cache_prefill() X-Ref |
Test that the subscription cache can be pre-filled. |
test_subscription_cache_fill() X-Ref |
Test that the subscription cache can filled user-at-a-time. |
test_discussion_subscription_cache_fill_for_course() X-Ref |
Test that the discussion subscription cache can filled course-at-a-time. |
test_discussion_subscription_cache_prefill() X-Ref |
Test that the discussion subscription cache can be forcibly updated for a user. |
test_discussion_subscription_cache_fill() X-Ref |
Test that the discussion subscription cache can filled user-at-a-time. |
test_forum_subscribe_toggle_as_other_repeat_subscriptions() X-Ref |
Test that after toggling the forum subscription as another user, the discussion subscription functionality works as expected. |
test_is_subscribed_cm() X-Ref |
Test that providing a context_module instance to is_subscribed does not result in additional lookups to retrieve the context_module. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |