Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 289 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: coursecat_test  - X-Ref

Unit tests for coursecat context class.

NOTE: more tests are in lib/tests/accesslib_test.php

test_legacy_classname()   X-Ref
Tests legacy class name.


test_factory_methods()   X-Ref
Tests covered methods.


test_get_short_name()   X-Ref
Tests covered method.


test_level()   X-Ref
Tests levels.


test_get_level_name()   X-Ref
Tests covered method.


test_get_context_name()   X-Ref
Tests covered method.


test_get_url()   X-Ref
Tests covered method.


test_resolve_behat_reference()   X-Ref
Tests covered methods.


test_get_compatible_role_archetypes()   X-Ref
Tests covered method.


test_get_possible_parent_levels()   X-Ref
Tests covered method.


test_get_capabilities()   X-Ref
Tests covered method.


test_create_level_instances()   X-Ref
Tests covered method.


test_get_child_contexts()   X-Ref
Tests covered method.


test_get_cleanup_sql()   X-Ref
Tests covered method.


test_build_paths()   X-Ref
Tests covered method.


test_set_locked()   X-Ref
Tests covered method.