Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 27... Línea 27...
27
 * @category   test
27
 * @category   test
28
 * @copyright  2022 Sara Arjona <sara@moodle.com>
28
 * @copyright  2022 Sara Arjona <sara@moodle.com>
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 * @coversDefaultClass \mod_data\preset
30
 * @coversDefaultClass \mod_data\preset
31
 */
31
 */
32
class preset_test extends \advanced_testcase {
32
final class preset_test extends \advanced_testcase {
Línea 33... Línea 33...
33
 
33
 
34
    /**
34
    /**
35
     * Test for static create_from_plugin method.
35
     * Test for static create_from_plugin method.
36
     *
36
     *
Línea 493... Línea 493...
493
    /**
493
    /**
494
     * Data provider for test_is_directory_a_preset().
494
     * Data provider for test_is_directory_a_preset().
495
     *
495
     *
496
     * @return array
496
     * @return array
497
     */
497
     */
498
    public function is_directory_a_preset_provider(): array {
498
    public static function is_directory_a_preset_provider(): array {
499
        global $CFG;
499
        global $CFG;
Línea 500... Línea 500...
500
 
500
 
501
        return [
501
        return [
502
            'Valid preset directory' => [
502
            'Valid preset directory' => [
Línea 605... Línea 605...
605
    /**
605
    /**
606
     * Data provider for generate_preset_xml().
606
     * Data provider for generate_preset_xml().
607
     *
607
     *
608
     * @return array
608
     * @return array
609
     */
609
     */
610
    public function generate_preset_xml_provider(): array {
610
    public static function generate_preset_xml_provider(): array {
611
        return [
611
        return [
612
            'Generate preset.xml with the default params and empty description' => [
612
            'Generate preset.xml with the default params and empty description' => [
613
                'params' => [],
613
                'params' => [],
614
                'description' => null,
614
                'description' => null,
615
            ],
615
            ],