Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 183... Línea 183...
183
    /**
183
    /**
184
     * Check duplicating activity does not duplicate meeting id
184
     * Check duplicating activity does not duplicate meeting id
185
     *
185
     *
186
     * @dataProvider bbb_type_provider
186
     * @dataProvider bbb_type_provider
187
     */
187
     */
188
    public function test_duplicate_module_no_meetingid(int $type) {
188
    public function test_duplicate_module_no_meetingid(int $type): void {
189
        list($bbactivitycontext, $bbactivitycm, $bbactivity)
189
        list($bbactivitycontext, $bbactivitycm, $bbactivity)
190
            = $this->create_instance($this->get_course(), ['type' => $type]);
190
            = $this->create_instance($this->get_course(), ['type' => $type]);
191
        $newcm = duplicate_module($this->get_course(), $bbactivitycm);
191
        $newcm = duplicate_module($this->get_course(), $bbactivitycm);
192
        $oldinstance = instance::get_from_cmid($bbactivitycm->id);
192
        $oldinstance = instance::get_from_cmid($bbactivitycm->id);
193
        $newinstance = instance::get_from_cmid($newcm->id);
193
        $newinstance = instance::get_from_cmid($newcm->id);
Línea 198... Línea 198...
198
    /**
198
    /**
199
     * Check that using the recycle bin keeps the meeting id
199
     * Check that using the recycle bin keeps the meeting id
200
     *
200
     *
201
     * @dataProvider bbb_type_provider
201
     * @dataProvider bbb_type_provider
202
     */
202
     */
203
    public function test_recycle_module_keep_meetingid(int $type) {
203
    public function test_recycle_module_keep_meetingid(int $type): void {
204
        list($bbactivitycontext, $bbactivitycm, $bbactivity)
204
        list($bbactivitycontext, $bbactivitycm, $bbactivity)
205
            = $this->create_instance($this->get_course(), ['type' => $type]);
205
            = $this->create_instance($this->get_course(), ['type' => $type]);
206
        // Delete the course module.
206
        // Delete the course module.
207
        course_delete_module($bbactivitycm->id);
207
        course_delete_module($bbactivitycm->id);
208
        // Now, run the course module deletion adhoc task.
208
        // Now, run the course module deletion adhoc task.