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.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

Tests the theme config class.

Copyright: 2012 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later (5)
File Size: 178 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: theme_config_test  - X-Ref

Tests the theme config class.

test_svg_image_use()   X-Ref
This function will test directives used to serve SVG images to make sure
this are making the right decisions.


test_editor_css_url_has_revision_and_subrevision()   X-Ref
Confirm that the editor_css_url contains the theme revision and the
theme subrevision if not in theme designer mode.


test_editor_scss_to_css_root_theme()   X-Ref
Confirm that editor_scss_to_css is correctly compiling for themes with no parent.


test_editor_scss_to_css_child_theme()   X-Ref
Confirm that editor_scss_to_css is compiling for a child theme not overriding its parent's editor SCSS.


test_get_all_block_regions()   X-Ref
Test that {@see theme_config::get_all_block_regions()} returns localised list of region names.