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 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

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: 228 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_theme_config_testcase  - 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.