Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Test execute API CALL with no instance
61
     * Test execute API CALL with no instance
62
     */
62
     */
63
    public function test_execute_no_instance() {
63
    public function test_execute_no_instance(): void {
64
        $this->resetAfterTest();
64
        $this->resetAfterTest();
Línea 65... Línea 65...
65
        $canjoin = $this->can_join(1234, 5678);
65
        $canjoin = $this->can_join(1234, 5678);
66
 
66
 
Línea 70... Línea 70...
70
    }
70
    }
Línea 71... Línea 71...
71
 
71
 
72
    /**
72
    /**
73
     * Test execute API CALL without login
73
     * Test execute API CALL without login
74
     */
74
     */
75
    public function test_execute_without_login() {
75
    public function test_execute_without_login(): void {
Línea 76... Línea 76...
76
        $this->resetAfterTest();
76
        $this->resetAfterTest();
77
 
77
 
78
        $course = $this->getDataGenerator()->create_course();
78
        $course = $this->getDataGenerator()->create_course();
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test execute API CALL with invalid login
87
     * Test execute API CALL with invalid login
88
     */
88
     */
89
    public function test_execute_with_invalid_login() {
89
    public function test_execute_with_invalid_login(): void {
Línea 90... Línea 90...
90
        $this->resetAfterTest();
90
        $this->resetAfterTest();
91
 
91
 
92
        $generator = $this->getDataGenerator();
92
        $generator = $this->getDataGenerator();
Línea 102... Línea 102...
102
    }
102
    }
Línea 103... Línea 103...
103
 
103
 
104
    /**
104
    /**
105
     * When login as a student
105
     * When login as a student
106
     */
106
     */
107
    public function test_execute_with_valid_login() {
107
    public function test_execute_with_valid_login(): void {
Línea 108... Línea 108...
108
        $this->resetAfterTest();
108
        $this->resetAfterTest();
109
 
109
 
110
        $generator = $this->getDataGenerator();
110
        $generator = $this->getDataGenerator();