Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 103... Línea 103...
103
    }
103
    }
Línea 104... Línea 104...
104
 
104
 
105
    /**
105
    /**
106
     * test_get_predictions
106
     * test_get_predictions
107
     */
107
     */
108
    public function test_action_executed() {
108
    public function test_action_executed(): void {
Línea 109... Línea 109...
109
        global $DB;
109
        global $DB;
Línea 110... Línea 110...
110
 
110
 
Línea 194... Línea 194...
194
     * @param   array   $actionnamefilter   Actions to filter
194
     * @param   array   $actionnamefilter   Actions to filter
195
     * @param   int     $returned             Number of actions returned
195
     * @param   int     $returned             Number of actions returned
196
     *
196
     *
197
     * @covers \core_analytics\prediction::get_executed_actions
197
     * @covers \core_analytics\prediction::get_executed_actions
198
     */
198
     */
199
    public function test_get_executed_actions(array $actionstoexecute, array $actionnamefilter, int $returned) {
199
    public function test_get_executed_actions(array $actionstoexecute, array $actionnamefilter, int $returned): void {
Línea 200... Línea 200...
200
 
200
 
201
        $this->setUser($this->teacher2);
201
        $this->setUser($this->teacher2);
202
        list($ignored, $predictions) = $this->model->get_predictions($this->context, true);
202
        list($ignored, $predictions) = $this->model->get_predictions($this->context, true);
203
        $prediction = reset($predictions);
203
        $prediction = reset($predictions);
Línea 211... Línea 211...
211
    }
211
    }
Línea 212... Línea 212...
212
 
212
 
213
    /**
213
    /**
214
     * test_get_predictions
214
     * test_get_predictions
215
     */
215
     */
216
    public function test_get_predictions() {
216
    public function test_get_predictions(): void {
Línea 217... Línea 217...
217
        global $DB;
217
        global $DB;
218
 
218
 
219
        // Already logged in as admin.
219
        // Already logged in as admin.