[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/tests/ -> lib_test.php (summary)

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: 3206 lines (140 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_forum_lib_testcase:: (51 methods):
  setUp()
  tearDown()
  test_forum_trigger_content_uploaded_event()
  test_forum_get_courses_user_posted_in()
  test_forum_tp_can_track_forums()
  test_forum_tp_is_tracked()
  test_forum_tp_get_course_unread_posts()
  test_forum_tp_get_untracked_forums()
  test_forum_auto_subscribe_on_create()
  test_forum_forced_subscribe_on_create()
  test_forum_optional_subscribe_on_create()
  test_forum_disallow_subscribe_on_create()
  test_forum_get_context()
  test_forum_get_neighbours()
  test_forum_get_neighbours_blog()
  test_forum_get_neighbours_with_groups()
  test_forum_get_neighbours_with_groups_blog()
  test_count_discussion_replies_basic()
  test_count_discussion_replies_limited()
  test_count_discussion_replies_paginated()
  test_count_discussion_replies_paginated_sorted()
  test_count_discussion_replies_limited_sorted()
  test_count_discussion_replies_paginated_sorted_small()
  test_count_discussion_replies_paginated_sorted_small_reverse()
  test_count_discussion_replies_limited_sorted_small_reverse()
  test_discussion_pinned_sort()
  test_forum_view()
  test_forum_discussion_view()
  create_multiple_discussions_with_replies()
  create_single_discussion_with_replies()
  create_single_discussion_pinned_with_replies()
  test_mod_forum_rating_can_see_item_ratings()
  test_forum_get_discussions_with_groups()
  test_forum_user_can_post_discussion()
  test_forum_user_has_posted_discussion_no_groups()
  test_forum_user_has_posted_discussion_multiple_forums()
  test_forum_user_has_posted_discussion_multiple_groups()
  test_mod_forum_myprofile_navigation()
  test_mod_forum_myprofile_navigation_as_guest()
  test_mod_forum_myprofile_navigation_different_user()
  test_print_overview()
  test_print_overview_groups()
  test_print_overview_timed()
  test_print_overview_timed_groups()
  print_overview_timed_provider()
  test_pinned_discussion_with_group()
  test_pinned_with_timed_discussions()
  test_pinned_timed_discussions_with_timed_discussions()
  test_forum_get_unmailed_posts()
  test_forum_is_author_hidden()
  forum_get_unmailed_posts_provider()


Class: mod_forum_lib_testcase  - X-Ref

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

test_forum_trigger_content_uploaded_event()   X-Ref
No description

test_forum_get_courses_user_posted_in()   X-Ref
No description

test_forum_tp_can_track_forums()   X-Ref
Test the logic in the forum_tp_can_track_forums() function.


test_forum_tp_is_tracked()   X-Ref
Test the logic in the test_forum_tp_is_tracked() function.


test_forum_tp_get_course_unread_posts()   X-Ref
Test the logic in the forum_tp_get_course_unread_posts() function.


test_forum_tp_get_untracked_forums()   X-Ref
Test the logic in the test_forum_tp_get_untracked_forums() function.


test_forum_auto_subscribe_on_create()   X-Ref
Test subscription using automatic subscription on create.


test_forum_forced_subscribe_on_create()   X-Ref
Test subscription using forced subscription on create.


test_forum_optional_subscribe_on_create()   X-Ref
Test subscription using optional subscription on create.


test_forum_disallow_subscribe_on_create()   X-Ref
Test subscription using disallow subscription on create.


test_forum_get_context()   X-Ref
Test that context fetching returns the appropriate context.


test_forum_get_neighbours()   X-Ref
Test getting the neighbour threads of a discussion.


test_forum_get_neighbours_blog()   X-Ref
Test getting the neighbour threads of a blog-like forum.


test_forum_get_neighbours_with_groups()   X-Ref
Test getting the neighbour threads of a discussion.


test_forum_get_neighbours_with_groups_blog()   X-Ref
Test getting the neighbour threads of a blog-like forum with groups involved.


test_count_discussion_replies_basic()   X-Ref
No description

test_count_discussion_replies_limited()   X-Ref
No description

test_count_discussion_replies_paginated()   X-Ref
No description

test_count_discussion_replies_paginated_sorted()   X-Ref
No description

test_count_discussion_replies_limited_sorted()   X-Ref
No description

test_count_discussion_replies_paginated_sorted_small()   X-Ref
No description

test_count_discussion_replies_paginated_sorted_small_reverse()   X-Ref
No description

test_count_discussion_replies_limited_sorted_small_reverse()   X-Ref
No description

test_discussion_pinned_sort()   X-Ref
No description

test_forum_view()   X-Ref
No description

test_forum_discussion_view()   X-Ref
Test forum_discussion_view.


create_multiple_discussions_with_replies($discussioncount, $replycount)   X-Ref
Create a new course, forum, and user with a number of discussions and replies.

param: int $discussioncount The number of discussions to create
param: int $replycount The number of replies to create in each discussion
return: array Containing the created forum object, and the ids of the created discussions.

create_single_discussion_with_replies($forum, $user, $replycount)   X-Ref
Create a discussion with a number of replies.

param: object $forum The forum which has been created
param: object $user The user making the discussion and replies
param: int $replycount The number of replies
return: object $discussion

create_single_discussion_pinned_with_replies($forum, $user, $replycount)   X-Ref
Create a discussion with a number of replies.

param: object $forum The forum which has been created
param: object $user The user making the discussion and replies
param: int $replycount The number of replies
return: object $discussion

test_mod_forum_rating_can_see_item_ratings()   X-Ref
Tests for mod_forum_rating_can_see_item_ratings().


test_forum_get_discussions_with_groups()   X-Ref
Test forum_get_discussions


test_forum_user_can_post_discussion()   X-Ref
Test forum_user_can_post_discussion


test_forum_user_has_posted_discussion_no_groups()   X-Ref
Test forum_user_has_posted_discussion with no groups.


test_forum_user_has_posted_discussion_multiple_forums()   X-Ref
Test forum_user_has_posted_discussion with multiple forums


test_forum_user_has_posted_discussion_multiple_groups()   X-Ref
Test forum_user_has_posted_discussion with multiple groups.


test_mod_forum_myprofile_navigation()   X-Ref
Tests the mod_forum_myprofile_navigation() function.


test_mod_forum_myprofile_navigation_as_guest()   X-Ref
Tests the mod_forum_myprofile_navigation() function as a guest.


test_mod_forum_myprofile_navigation_different_user()   X-Ref
Tests the mod_forum_myprofile_navigation() function as a user viewing another user's profile.


test_print_overview()   X-Ref
No description

test_print_overview_groups()   X-Ref
No description

test_print_overview_timed($config, $hasresult)   X-Ref


test_print_overview_timed_groups($config, $hasresult)   X-Ref


print_overview_timed_provider()   X-Ref
No description

test_pinned_discussion_with_group()   X-Ref
Test test_pinned_discussion_with_group.


test_pinned_with_timed_discussions()   X-Ref
Test test_pinned_with_timed_discussions.


test_pinned_timed_discussions_with_timed_discussions()   X-Ref
Test test_pinned_timed_discussions_with_timed_discussions.


test_forum_get_unmailed_posts($discussiondata, $enabletimedposts, $expectedcount, $expectedreplycount)   X-Ref


test_forum_is_author_hidden()   X-Ref
Test for forum_is_author_hidden.


forum_get_unmailed_posts_provider()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1