Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

Unit tests for tool_health.

Copyright: 2013 Marko Vidberg
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 218 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: healthlib_testcase  - X-Ref

Health lib testcase.

provider_loop_categories()   X-Ref
Data provider for test_tool_health_category_find_loops.


provider_missing_parent_categories()   X-Ref
Data provider for test_tool_health_category_find_missing_parents.


test_tool_health_category_find_loops($categories, $expected)   X-Ref
Test finding loops between two items referring to each other.

param: array $categories
param: array $expected

test_tool_health_category_find_missing_parents($categories, $expected)   X-Ref
Test finding missing parent categories.

param: array $categories
param: array $expected

test_tool_health_category_list_missing_parents()   X-Ref
Test listing missing parent categories.


test_tool_health_category_list_loops()   X-Ref
Test listing loop categories.