Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 60... Línea 60...
60
    }
60
    }
Línea 61... Línea 61...
61
 
61
 
62
    /**
62
    /**
63
     * Test execute API CALL with no instance
63
     * Test execute API CALL with no instance
64
     */
64
     */
65
    public function test_execute_no_instance() {
65
    public function test_execute_no_instance(): void {
66
        $this->resetAfterTest();
66
        $this->resetAfterTest();
Línea 67... Línea 67...
67
        $result = $this->completion_validate(1234);
67
        $result = $this->completion_validate(1234);
68
 
68
 
Línea 77... Línea 77...
77
    }
77
    }
Línea 78... Línea 78...
78
 
78
 
79
    /**
79
    /**
80
     * Test execute API CALL without login
80
     * Test execute API CALL without login
81
     */
81
     */
82
    public function test_execute_without_login() {
82
    public function test_execute_without_login(): void {
Línea 83... Línea 83...
83
        $this->resetAfterTest();
83
        $this->resetAfterTest();
84
 
84
 
85
        $course = $this->getDataGenerator()->create_course();
85
        $course = $this->getDataGenerator()->create_course();
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * Test execute API CALL with invalid login
93
     * Test execute API CALL with invalid login
94
     */
94
     */
95
    public function test_execute_with_invalid_login() {
95
    public function test_execute_with_invalid_login(): void {
Línea 96... Línea 96...
96
        $this->resetAfterTest();
96
        $this->resetAfterTest();
97
 
97
 
98
        $generator = $this->getDataGenerator();
98
        $generator = $this->getDataGenerator();
Línea 107... Línea 107...
107
    }
107
    }
Línea 108... Línea 108...
108
 
108
 
109
    /**
109
    /**
110
     * When login as a student
110
     * When login as a student
111
     */
111
     */
112
    public function test_execute_with_valid_login_but_student() {
112
    public function test_execute_with_valid_login_but_student(): void {
Línea 113... Línea 113...
113
        $this->resetAfterTest();
113
        $this->resetAfterTest();
114
 
114
 
115
        $generator = $this->getDataGenerator();
115
        $generator = $this->getDataGenerator();
Línea 133... Línea 133...
133
    }
133
    }
Línea 134... Línea 134...
134
 
134
 
135
    /**
135
    /**
136
     * When login as a student
136
     * When login as a student
137
     */
137
     */
138
    public function test_execute_with_valid_login_with_teacher() {
138
    public function test_execute_with_valid_login_with_teacher(): void {
Línea 139... Línea 139...
139
        $this->resetAfterTest();
139
        $this->resetAfterTest();
140
 
140
 
141
        $generator = $this->getDataGenerator();
141
        $generator = $this->getDataGenerator();