Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 38... Línea 38...
38
 *
38
 *
39
 * @copyright  2020 Andrew Nicols <andrew@nicols.co.uk>
39
 * @copyright  2020 Andrew Nicols <andrew@nicols.co.uk>
40
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
41
 * @coversDefaultClass \core\external\output\icon_system\load_fontawesome_map
41
 * @coversDefaultClass \core\external\output\icon_system\load_fontawesome_map
42
 */
42
 */
43
class load_fontawesome_map_test extends externallib_advanced_testcase {
43
final class load_fontawesome_map_test extends externallib_advanced_testcase {
44
    /**
44
    /**
45
     * Ensure that a valid theme which uses fontawesome returns a map.
45
     * Ensure that a valid theme which uses fontawesome returns a map.
46
     *
46
     *
47
     * @covers ::execute_parameters
47
     * @covers ::execute_parameters
48
     * @covers ::execute
48
     * @covers ::execute
Línea 75... Línea 75...
75
    /**
75
    /**
76
     * Data provider for valid themes to use with the execute function.
76
     * Data provider for valid themes to use with the execute function.
77
     *
77
     *
78
     * @return  array
78
     * @return  array
79
     */
79
     */
80
    public function valid_fontawesome_theme_provider(): array {
80
    public static function valid_fontawesome_theme_provider(): array {
81
        return [
81
        return [
82
            'Boost theme' => ['boost'],
82
            'Boost theme' => ['boost'],
83
            'Classic theme (extends boost)' => ['classic'],
83
            'Classic theme (extends boost)' => ['classic'],
84
        ];
84
        ];
85
    }
85
    }