Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [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.