Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 25... Línea 25...
25
 * @package   core
25
 * @package   core
26
 * @category  test
26
 * @category  test
27
 * @copyright 2015 Damyon Wiese
27
 * @copyright 2015 Damyon Wiese
28
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 */
29
 */
30
class mustache_template_finder_test extends \advanced_testcase {
30
final class mustache_template_finder_test extends \advanced_testcase {
Línea 31... Línea 31...
31
 
31
 
32
    /**
32
    /**
33
     * Data provider which reutrns a set of valid template directories to be used when testing
33
     * Data provider which reutrns a set of valid template directories to be used when testing
34
     * get_template_directories_for_component.
34
     * get_template_directories_for_component.
35
     *
35
     *
36
     * @return array
36
     * @return array
37
     */
37
     */
38
    public function valid_template_directories_provider(): array {
38
    public static function valid_template_directories_provider(): array {
39
        return [
39
        return [
40
            'plugin: mod_assign' => [
40
            'plugin: mod_assign' => [
41
                'component' => 'mod_assign',
41
                'component' => 'mod_assign',
42
                'theme' => '',
42
                'theme' => '',
Línea 109... Línea 109...
109
     * Data provider which reutrns a set of valid template directories to be used when testing
109
     * Data provider which reutrns a set of valid template directories to be used when testing
110
     * get_template_directories_for_component.
110
     * get_template_directories_for_component.
111
     *
111
     *
112
     * @return array
112
     * @return array
113
     */
113
     */
114
    public function valid_template_filepath_provider(): array {
114
    public static function valid_template_filepath_provider(): array {
115
        return [
115
        return [
116
            'Standard core template' => [
116
            'Standard core template' => [
117
                'template' => 'core/modal',
117
                'template' => 'core/modal',
118
                'theme' => '',
118
                'theme' => '',
119
                'location' => 'lib/templates/modal.mustache',
119
                'location' => 'lib/templates/modal.mustache',