[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/online_users/tests/ -> online_users_test.php (summary)

Online users tests

Author: Barry Oosthuizen <barry.oosthuizen@nottingham.ac.uk>
Copyright: 2015 University of Nottingham
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 151 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

block_online_users_testcase:: (4 methods):
  setUp()
  test_fetcher_course1_group_members()
  test_fetcher_courses()
  test_fetcher_sitelevel()


Class: block_online_users_testcase  - X-Ref

Online users testcase

setUp()   X-Ref
Tests initial setup.

Prepare the site with some courses, groups, users and
simulate various recent accesses.

test_fetcher_course1_group_members()   X-Ref
Check logged in group 1, 2 & 3 members in course 1 (should be 3, 4 and 0).

param: array $data Array of user, course and group objects
param: int $now Current Unix timestamp
param: int $timetoshowusers The time window (in seconds) to check for the latest logged in users

test_fetcher_courses()   X-Ref
Check logged in users in courses 1 & 2 (should be 9 and 0).

param: array $data Array of user, course and group objects
param: int $now Current Unix timestamp
param: int $timetoshowusers The time window (in seconds) to check for the latest logged in users

test_fetcher_sitelevel()   X-Ref
Check logged in at the site level (should be 12).

param: int $now Current Unix timestamp
param: int $timetoshowusers The time window (in seconds) to check for the latest logged in users



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