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 39 and 310]

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

Copyright: 2015 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 198 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_output_mustache_template_finder_testcase  - X-Ref

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.