Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 29... Línea 29...
29
require_once($CFG->dirroot . '/admin/tool/moodlenet/lib.php');
29
require_once($CFG->dirroot . '/admin/tool/moodlenet/lib.php');
Línea 30... Línea 30...
30
 
30
 
31
/**
31
/**
32
 * Test moodlenet functions
32
 * Test moodlenet functions
33
 */
33
 */
Línea 34... Línea 34...
34
class lib_test extends \advanced_testcase {
34
final class lib_test extends \advanced_testcase {
35
 
35
 
36
    /**
36
    /**
37
     * Test the generate_mnet_endpoint function
37
     * Test the generate_mnet_endpoint function
Línea 50... Línea 50...
50
    /**
50
    /**
51
     * Dataprovider for test_generate_mnet_endpoint
51
     * Dataprovider for test_generate_mnet_endpoint
52
     *
52
     *
53
     * @return array
53
     * @return array
54
     */
54
     */
55
    public function get_endpoints_provider() {
55
    public static function get_endpoints_provider(): array {
56
        global $CFG;
56
        global $CFG;
57
        return [
57
        return [
58
            [
58
            [
59
                '@name@domain.name',
59
                '@name@domain.name',
60
                1,
60
                1,