[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/tests/ -> modinfolib_test.php (summary)

Unit tests for lib/modinfolib.php.

Copyright: 2012 Andrew Davis
File Size: 1113 lines (55 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_modinfolib_testcase:: (14 methods):
  test_section_info_properties()
  test_cm_info_properties()
  test_matching_cacherev()
  test_course_modinfo_properties()
  test_is_user_access_restricted_by_conditional_access()
  test_is_user_access_restricted_by_capability()
  test_cm_info_property_deprecations()
  test_cm_info_get_course_module_record()
  test_availability_property()
  test_availability_deprecations()
  test_get_groups()
  test_create()
  test_get_course_and_cm_from_cmid()
  test_get_course_and_cm_from_instance()


Class: core_modinfolib_testcase  - X-Ref

Unit tests for modinfolib.php

test_section_info_properties()   X-Ref
No description

test_cm_info_properties()   X-Ref
No description

test_matching_cacherev()   X-Ref
No description

test_course_modinfo_properties()   X-Ref
No description

test_is_user_access_restricted_by_conditional_access()   X-Ref
Test is_user_access_restricted_by_conditional_access()

The underlying conditional access system is more thoroughly tested in lib/tests/conditionlib_test.php

test_is_user_access_restricted_by_capability()   X-Ref
No description

test_cm_info_property_deprecations()   X-Ref
Tests that various deprecated cm_info methods are throwing debuggign messages


test_cm_info_get_course_module_record()   X-Ref
Tests for function cm_info::get_course_module_record()


test_availability_property()   X-Ref
Tests the availability property that has been added to course modules
and sections (just to see that it is correctly saved and accessed).


test_availability_deprecations()   X-Ref
Some properties have been deprecated from both the section and module
classes. This checks they still work (and show warnings).


test_get_groups()   X-Ref
Tests for get_groups() method.


test_create()   X-Ref
Tests the function for constructing a cm_info from mixed data.


test_get_course_and_cm_from_cmid()   X-Ref
Tests function for getting $course and $cm at once quickly from modinfo
based on cmid or cm record.


test_get_course_and_cm_from_instance()   X-Ref
Tests function for getting $course and $cm at once quickly from modinfo
based on instance id or record.




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1