Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 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: 234 lines (10 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_devicedetectregex()   X-Ref
This function will test custom device detection regular expression setting.


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.