Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 336... Línea 336...
336
     * @dataProvider analysable_provider
336
     * @dataProvider analysable_provider
337
     * @param mixed $courseparams Course data
337
     * @param mixed $courseparams Course data
338
     * @param true|string $isvalid True when analysable is valid, string when it is not
338
     * @param true|string $isvalid True when analysable is valid, string when it is not
339
     * @param boolean $fortraining True if the course is for training the model
339
     * @param boolean $fortraining True if the course is for training the model
340
     */
340
     */
341
    public function test_core_target_course_completion_analysable($courseparams, $isvalid, $fortraining = true) {
341
    public function test_core_target_course_completion_analysable($courseparams, $isvalid, $fortraining = true): void {
342
        global $DB;
342
        global $DB;
Línea 343... Línea 343...
343
 
343
 
Línea 344... Línea 344...
344
        $this->resetAfterTest(true);
344
        $this->resetAfterTest(true);
Línea 393... Línea 393...
393
     * @param int $timeend Enrol end date
393
     * @param int $timeend Enrol end date
394
     * @param boolean $isvalidfortraining True when sample is valid for training, false when it is not
394
     * @param boolean $isvalidfortraining True when sample is valid for training, false when it is not
395
     * @param boolean $isvalidforprediction True when sample is valid for prediction, false when it is not
395
     * @param boolean $isvalidforprediction True when sample is valid for prediction, false when it is not
396
     */
396
     */
397
    public function test_core_target_course_completion_samples($coursestart, $courseend, $timestart, $timeend,
397
    public function test_core_target_course_completion_samples($coursestart, $courseend, $timestart, $timeend,
398
            $isvalidfortraining, $isvalidforprediction) {
398
            $isvalidfortraining, $isvalidforprediction): void {
Línea 399... Línea 399...
399
 
399
 
Línea 400... Línea 400...
400
        $this->resetAfterTest(true);
400
        $this->resetAfterTest(true);
401
 
401
 
Línea 431... Línea 431...
431
     * @param int $timestart Enrol start date
431
     * @param int $timestart Enrol start date
432
     * @param int $timeend Enrol end date
432
     * @param int $timeend Enrol end date
433
     * @param boolean $nullcalculation Whether the calculation should be null or not
433
     * @param boolean $nullcalculation Whether the calculation should be null or not
434
     */
434
     */
435
    public function test_core_target_course_completion_active_during_analysis_time($starttime, $endtime, $timestart, $timeend,
435
    public function test_core_target_course_completion_active_during_analysis_time($starttime, $endtime, $timestart, $timeend,
436
            $nullcalculation) {
436
            $nullcalculation): void {
Línea 437... Línea 437...
437
 
437
 
Línea 438... Línea 438...
438
        $this->resetAfterTest(true);
438
        $this->resetAfterTest(true);
439
 
439
 
Línea 501... Línea 501...
501
    }
501
    }
Línea 502... Línea 502...
502
 
502
 
503
     /**
503
     /**
504
      * Test the specific conditions of a valid analysable for the course_competencies target.
504
      * Test the specific conditions of a valid analysable for the course_competencies target.
505
      */
505
      */
Línea 506... Línea 506...
506
    public function test_core_target_course_competencies_analysable() {
506
    public function test_core_target_course_competencies_analysable(): void {
Línea 507... Línea 507...
507
 
507
 
508
        $data = $this->setup_competencies_environment();
508
        $data = $this->setup_competencies_environment();
Línea 517... Línea 517...
517
    }
517
    }
Línea 518... Línea 518...
518
 
518
 
519
    /**
519
    /**
520
     * Test the target value calculation.
520
     * Test the target value calculation.
521
     */
521
     */
Línea 522... Línea 522...
522
    public function test_core_target_course_competencies_calculate() {
522
    public function test_core_target_course_competencies_calculate(): void {
Línea 523... Línea 523...
523
 
523
 
524
        $data = $this->setup_competencies_environment();
524
        $data = $this->setup_competencies_environment();
Línea 550... Línea 550...
550
    }
550
    }
Línea 551... Línea 551...
551
 
551
 
552
    /**
552
    /**
553
     * Test the specific conditions of a valid analysable for the course_gradetopass target.
553
     * Test the specific conditions of a valid analysable for the course_gradetopass target.
554
     */
554
     */
555
    public function test_core_target_course_gradetopass_analysable() {
555
    public function test_core_target_course_gradetopass_analysable(): void {
Línea 556... Línea 556...
556
        global $DB;
556
        global $DB;
557
 
557
 
Línea 581... Línea 581...
581
    }
581
    }
Línea 582... Línea 582...
582
 
582
 
583
    /**
583
    /**
584
     * Test the target value calculation of the course_gradetopass target.
584
     * Test the target value calculation of the course_gradetopass target.
585
     */
585
     */
586
    public function test_core_target_course_gradetopass_calculate() {
586
    public function test_core_target_course_gradetopass_calculate(): void {
Línea 587... Línea 587...
587
        global $DB;
587
        global $DB;
Línea 588... Línea 588...
588
 
588