Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
     *
41
     *
42
     * Test saving a graded LTI with resource and tag info (as a result of
42
     * Test saving a graded LTI with resource and tag info (as a result of
43
     * content item selection) creates a gradebookservices record
43
     * content item selection) creates a gradebookservices record
44
     * that can be retrieved using the gradebook service API.
44
     * that can be retrieved using the gradebook service API.
45
     */
45
     */
46
    public function test_lti_add_coupled_lineitem() {
46
    public function test_lti_add_coupled_lineitem(): void {
47
        $this->resetAfterTest();
47
        $this->resetAfterTest();
48
        $this->setAdminUser();
48
        $this->setAdminUser();
Línea 49... Línea 49...
49
 
49
 
Línea 76... Línea 76...
76
     *
76
     *
77
     * Test saving a graded LTI with resource and tag info (as a result of
77
     * Test saving a graded LTI with resource and tag info (as a result of
78
     * content item selection) creates a gradebookservices record
78
     * content item selection) creates a gradebookservices record
79
     * that can be retrieved using the gradebook service API.
79
     * that can be retrieved using the gradebook service API.
80
     */
80
     */
81
    public function test_lti_add_coupled_lineitem_default_subreview() {
81
    public function test_lti_add_coupled_lineitem_default_subreview(): void {
82
        $this->resetAfterTest();
82
        $this->resetAfterTest();
83
        $this->setAdminUser();
83
        $this->setAdminUser();
Línea 84... Línea 84...
84
 
84
 
Línea 104... Línea 104...
104
     * @covers ::add_standalone_lineitem
104
     * @covers ::add_standalone_lineitem
105
     *
105
     *
106
     * Test saving a standalone LTI lineitem with resource and tag info
106
     * Test saving a standalone LTI lineitem with resource and tag info
107
     * that can be retrieved using the gradebook service API.
107
     * that can be retrieved using the gradebook service API.
108
     */
108
     */
109
    public function test_lti_add_standalone_lineitem() {
109
    public function test_lti_add_standalone_lineitem(): void {
110
        $this->resetAfterTest();
110
        $this->resetAfterTest();
111
        $this->setAdminUser();
111
        $this->setAdminUser();
Línea 112... Línea 112...
112
 
112
 
113
        $course = $this->getDataGenerator()->create_course();
113
        $course = $this->getDataGenerator()->create_course();
Línea 126... Línea 126...
126
     * Test line item URL is populated for coupled line item only
126
     * Test line item URL is populated for coupled line item only
127
     * if there is not another line item bound to the lti instance,
127
     * if there is not another line item bound to the lti instance,
128
     * since in that case there would be no rule to define which of
128
     * since in that case there would be no rule to define which of
129
     * the line items should be actually passed.
129
     * the line items should be actually passed.
130
     */
130
     */
131
    public function test_get_launch_parameters_coupled() {
131
    public function test_get_launch_parameters_coupled(): void {
132
        $this->resetAfterTest();
132
        $this->resetAfterTest();
133
        $this->setAdminUser();
133
        $this->setAdminUser();
Línea 134... Línea 134...
134
 
134
 
Línea 157... Línea 157...
157
     * @covers ::override_endpoint
157
     * @covers ::override_endpoint
158
     *
158
     *
159
     * Test Submission Review URL and custom parameter is applied when the
159
     * Test Submission Review URL and custom parameter is applied when the
160
     * launch is submission review.
160
     * launch is submission review.
161
     */
161
     */
162
    public function test_get_launch_parameters_coupled_subreview_override() {
162
    public function test_get_launch_parameters_coupled_subreview_override(): void {
163
        $this->resetAfterTest();
163
        $this->resetAfterTest();
164
        $this->setAdminUser();
164
        $this->setAdminUser();
Línea 165... Línea 165...
165
 
165
 
Línea 185... Línea 185...
185
     * @covers ::override_endpoint
185
     * @covers ::override_endpoint
186
     *
186
     *
187
     * Test Submission Review URL and custom parameter is applied when the
187
     * Test Submission Review URL and custom parameter is applied when the
188
     * launch is submission review.
188
     * launch is submission review.
189
     */
189
     */
190
    public function test_get_launch_parameters_coupled_subreview_override_default() {
190
    public function test_get_launch_parameters_coupled_subreview_override_default(): void {
191
        $this->resetAfterTest();
191
        $this->resetAfterTest();
192
        $this->setAdminUser();
192
        $this->setAdminUser();
Línea 193... Línea 193...
193
 
193
 
Línea 213... Línea 213...
213
     * @covers ::get_launch_parameters
213
     * @covers ::get_launch_parameters
214
     *
214
     *
215
     * Test line item URL is populated for not coupled line item only
215
     * Test line item URL is populated for not coupled line item only
216
     * if there is a single line item attached to that lti instance.
216
     * if there is a single line item attached to that lti instance.
217
     */
217
     */
218
    public function test_get_launch_parameters_decoupled() {
218
    public function test_get_launch_parameters_decoupled(): void {
219
        $this->resetAfterTest();
219
        $this->resetAfterTest();
220
        $this->setAdminUser();
220
        $this->setAdminUser();
Línea 221... Línea 221...
221
 
221
 
Línea 247... Línea 247...
247
    /**
247
    /**
248
     * @covers ::is_user_gradable_in_course
248
     * @covers ::is_user_gradable_in_course
249
     *
249
     *
250
     * Test if a user can be graded in a course.
250
     * Test if a user can be graded in a course.
251
     */
251
     */
252
    public function test_is_user_gradable_in_course() {
252
    public function test_is_user_gradable_in_course(): void {
253
        $this->resetAfterTest();
253
        $this->resetAfterTest();
Línea 254... Línea 254...
254
 
254
 
255
        $generator = $this->getDataGenerator();
255
        $generator = $this->getDataGenerator();
256
        $course = $generator->create_course();
256
        $course = $generator->create_course();