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.

(no description)

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

Defines 1 class


Class: mustache_template_finder_test  - X-Ref

Unit tests for lib/classes/output/mustache_template_finder.php

Unit tests for the Mustache template finder class (contains logic about
resolving mustache template locations.

valid_template_directories_provider()   X-Ref
Data provider which reutrns a set of valid template directories to be used when testing
get_template_directories_for_component.

return: array

test_get_template_directories_for_component(string $component, string $theme, array $paths)   X-Ref
Tests for get_template_directories_for_component.

param: string $component
param: string $theme
param: array $paths

test_invalid_component_get_template_directories_for_component()   X-Ref
Tests for get_template_directories_for_component when dealing with an invalid component.


valid_template_filepath_provider()   X-Ref
Data provider which reutrns a set of valid template directories to be used when testing
get_template_directories_for_component.

return: array

test_get_template_filepath(string $template, string $theme, string $location)   X-Ref
Tests for get_template_filepath.

param: string $template
param: string $theme
param: string $location

test_invalid_component_get_template_filepath()   X-Ref
Tests for get_template_filepath when dealing with an invalid component.