Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
     * @dataProvider    format_feedback_provider
38
     * @dataProvider    format_feedback_provider
39
     * @param   string  $input The input string to test
39
     * @param   string  $input The input string to test
40
     * @param   int     $inputformat The format of the input string
40
     * @param   int     $inputformat The format of the input string
41
     * @param   string  $expected The expected result of the format.
41
     * @param   string  $expected The expected result of the format.
42
     */
42
     */
43
    public function test_format_feedback($input, $inputformat, $expected) {
43
    public function test_format_feedback($input, $inputformat, $expected): void {
44
        $feedback = $this->getMockForAbstractClass(
44
        $feedback = $this->getMockForAbstractClass(
45
                \grade_export::class,
45
                \grade_export::class,
46
                [],
46
                [],
47
                '',
47
                '',
48
                false
48
                false
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Ensure that feedback is correctly formatted. Test augmented functionality to handle file links
61
     * Ensure that feedback is correctly formatted. Test augmented functionality to handle file links
62
     */
62
     */
63
    public function test_format_feedback_with_grade() {
63
    public function test_format_feedback_with_grade(): void {
64
        $this->resetAfterTest();
64
        $this->resetAfterTest();
65
        $dg = $this->getDataGenerator();
65
        $dg = $this->getDataGenerator();
66
        $c1 = $dg->create_course();
66
        $c1 = $dg->create_course();
67
        $u1 = $dg->create_user();
67
        $u1 = $dg->create_user();