Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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: 216 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.