Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 54... Línea 54...
54
    }
54
    }
Línea 55... Línea 55...
55
 
55
 
56
    /**
56
    /**
57
     * Test for enrol_lti_plugin::delete_instance().
57
     * Test for enrol_lti_plugin::delete_instance().
58
     */
58
     */
59
    public function test_delete_instance() {
59
    public function test_delete_instance(): void {
Línea 60... Línea 60...
60
        global $DB;
60
        global $DB;
61
 
61
 
62
        // Create tool enrolment instance.
62
        // Create tool enrolment instance.
Línea 124... Línea 124...
124
    /**
124
    /**
125
     * Test confirming that relevant data is removed after enrol instance removal.
125
     * Test confirming that relevant data is removed after enrol instance removal.
126
     *
126
     *
127
     * @covers \enrol_lti_plugin::delete_instance
127
     * @covers \enrol_lti_plugin::delete_instance
128
     */
128
     */
129
    public function test_delete_instance_lti_advantage() {
129
    public function test_delete_instance_lti_advantage(): void {
130
        global $DB;
130
        global $DB;
131
        // Setup.
131
        // Setup.
132
        [
132
        [
133
            $course,
133
            $course,
134
            $modresource,
134
            $modresource,
Línea 169... Línea 169...
169
    }
169
    }
Línea 170... Línea 170...
170
 
170
 
171
    /**
171
    /**
172
     * Test for getting user enrolment actions.
172
     * Test for getting user enrolment actions.
173
     */
173
     */
174
    public function test_get_user_enrolment_actions() {
174
    public function test_get_user_enrolment_actions(): void {
175
        global $CFG, $DB, $PAGE;
175
        global $CFG, $DB, $PAGE;
Línea 176... Línea 176...
176
        $this->resetAfterTest();
176
        $this->resetAfterTest();
177
 
177
 
Línea 220... Línea 220...
220
    /**
220
    /**
221
     * Test the behaviour of an enrolment method when the activity to which it provides access is deleted.
221
     * Test the behaviour of an enrolment method when the activity to which it provides access is deleted.
222
     *
222
     *
223
     * @covers \enrol_lti_pre_course_module_delete
223
     * @covers \enrol_lti_pre_course_module_delete
224
     */
224
     */
225
    public function test_course_module_deletion() {
225
    public function test_course_module_deletion(): void {
226
        // Create two modules and publish them.
226
        // Create two modules and publish them.
227
        $course = $this->getDataGenerator()->create_course();
227
        $course = $this->getDataGenerator()->create_course();
228
        $mod = $this->getDataGenerator()->create_module('assign', ['course' => $course->id]);
228
        $mod = $this->getDataGenerator()->create_module('assign', ['course' => $course->id]);
229
        $mod2 = $this->getDataGenerator()->create_module('assign', ['course' => $course->id]);
229
        $mod2 = $this->getDataGenerator()->create_module('assign', ['course' => $course->id]);
230
        $tooldata = [
230
        $tooldata = [