Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 56... Línea 56...
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    /**
58
    /**
59
     * Test the get_context_for_userid_within_feedback shim.
59
     * Test the get_context_for_userid_within_feedback shim.
60
     */
60
     */
61
    public function test_get_context_for_userid_within_feedback() {
61
    public function test_get_context_for_userid_within_feedback(): void {
62
        $userid = 21;
62
        $userid = 21;
63
        $contextlist = new \core_privacy\local\request\contextlist();
63
        $contextlist = new \core_privacy\local\request\contextlist();
64
        $mock = $this->createMock(test_assignfeedback_legacy_polyfill_mock_wrapper::class);
64
        $mock = $this->createMock(test_assignfeedback_legacy_polyfill_mock_wrapper::class);
65
        $mock->expects($this->once())
65
        $mock->expects($this->once())
Línea 70... Línea 70...
70
    }
70
    }
Línea 71... Línea 71...
71
 
71
 
72
    /**
72
    /**
73
     * Test the get_student_user_ids shim.
73
     * Test the get_student_user_ids shim.
74
     */
74
     */
75
    public function test_get_student_user_ids() {
75
    public function test_get_student_user_ids(): void {
76
        $teacherid = 107;
76
        $teacherid = 107;
77
        $assignid = 15;
77
        $assignid = 15;
78
        $useridlist = new \mod_assign\privacy\useridlist($teacherid, $assignid);
78
        $useridlist = new \mod_assign\privacy\useridlist($teacherid, $assignid);
79
        $mock = $this->createMock(test_assignfeedback_legacy_polyfill_mock_wrapper::class);
79
        $mock = $this->createMock(test_assignfeedback_legacy_polyfill_mock_wrapper::class);
Línea 85... Línea 85...
85
    }
85
    }
Línea 86... Línea 86...
86
 
86
 
87
    /**
87
    /**
88
     * Test the export_feedback_user_data shim.
88
     * Test the export_feedback_user_data shim.
89
     */
89
     */
90
    public function test_export_feedback_user_data() {
90
    public function test_export_feedback_user_data(): void {
91
        $this->resetAfterTest();
91
        $this->resetAfterTest();
92
        $course = $this->getDataGenerator()->create_course();
92
        $course = $this->getDataGenerator()->create_course();
93
        $assign = $this->create_instance(['course' => $course]);
93
        $assign = $this->create_instance(['course' => $course]);
94
        $context = \context_system::instance();
94
        $context = \context_system::instance();
Línea 103... Línea 103...
103
    }
103
    }
Línea 104... Línea 104...
104
 
104
 
105
    /**
105
    /**
106
     * Test the delete_feedback_for_context shim.
106
     * Test the delete_feedback_for_context shim.
107
     */
107
     */
108
    public function test_delete_feedback_for_context() {
108
    public function test_delete_feedback_for_context(): void {
109
        $this->resetAfterTest();
109
        $this->resetAfterTest();
110
        $course = $this->getDataGenerator()->create_course();
110
        $course = $this->getDataGenerator()->create_course();
111
        $assign = $this->create_instance(['course' => $course]);
111
        $assign = $this->create_instance(['course' => $course]);
112
        $context = \context_system::instance();
112
        $context = \context_system::instance();
Línea 121... Línea 121...
121
    }
121
    }
Línea 122... Línea 122...
122
 
122
 
123
    /**
123
    /**
124
     * Test the delete feedback for grade shim.
124
     * Test the delete feedback for grade shim.
125
     */
125
     */
126
    public function test_delete_feedback_for_grade() {
126
    public function test_delete_feedback_for_grade(): void {
127
        $this->resetAfterTest();
127
        $this->resetAfterTest();
128
        $course = $this->getDataGenerator()->create_course();
128
        $course = $this->getDataGenerator()->create_course();
129
        $assign = $this->create_instance(['course' => $course]);
129
        $assign = $this->create_instance(['course' => $course]);
130
        $context = \context_system::instance();
130
        $context = \context_system::instance();