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.

(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.