Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 164... Línea 164...
164
        $this->cms = $cms;
164
        $this->cms = $cms;
165
        $this->ccs = $ccs;
165
        $this->ccs = $ccs;
166
        $this->cmcs = $cmcs;
166
        $this->cmcs = $cmcs;
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    public function test_simple_migration() {
169
    public function test_simple_migration(): void {
Línea 170... Línea 170...
170
        $this->setAdminUser();
170
        $this->setAdminUser();
171
 
171
 
172
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
172
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
Línea 200... Línea 200...
200
 
200
 
201
        $this->assertCourseCompetencyExists($this->c1, $this->f1comps['X1']);
201
        $this->assertCourseCompetencyExists($this->c1, $this->f1comps['X1']);
202
        $this->assertModuleCompetencyExists($this->cms[$this->c1->id]['F1'], $this->f1comps['X1']);
202
        $this->assertModuleCompetencyExists($this->cms[$this->c1->id]['F1'], $this->f1comps['X1']);
Línea 203... Línea 203...
203
    }
203
    }
204
 
204
 
Línea 205... Línea 205...
205
    public function test_remove_when_missing() {
205
    public function test_remove_when_missing(): void {
206
        $this->setAdminUser();
206
        $this->setAdminUser();
207
 
207
 
Línea 226... Línea 226...
226
 
226
 
227
        $this->assertCourseCompetencyNotExists($this->c1, $this->f1comps['X1']);
227
        $this->assertCourseCompetencyNotExists($this->c1, $this->f1comps['X1']);
228
        $this->assertModuleCompetencyNotExists($this->cms[$this->c1->id]['F1'], $this->f1comps['X1']);
228
        $this->assertModuleCompetencyNotExists($this->cms[$this->c1->id]['F1'], $this->f1comps['X1']);
Línea 229... Línea 229...
229
    }
229
    }
230
 
230
 
Línea 231... Línea 231...
231
    public function test_allowed_courses() {
231
    public function test_allowed_courses(): void {
232
        $this->setAdminUser();
232
        $this->setAdminUser();
233
 
233
 
Línea 259... Línea 259...
259
        $this->assertCourseCompetencyNotMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
259
        $this->assertCourseCompetencyNotMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
260
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
260
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
261
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
261
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
262
    }
262
    }
Línea 263... Línea 263...
263
 
263
 
264
    public function test_disallowed_courses() {
264
    public function test_disallowed_courses(): void {
Línea 265... Línea 265...
265
        $this->setAdminUser();
265
        $this->setAdminUser();
266
 
266
 
267
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
267
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
Línea 292... Línea 292...
292
        $this->assertCourseCompetencyNotMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
292
        $this->assertCourseCompetencyNotMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
293
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
293
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
294
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
294
        $this->assertModuleCompetencyNotMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
295
    }
295
    }
Línea 296... Línea 296...
296
 
296
 
297
    public function test_course_start_date_from() {
297
    public function test_course_start_date_from(): void {
Línea 298... Línea 298...
298
        $this->setAdminUser();
298
        $this->setAdminUser();
299
 
299
 
300
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
300
        $mapper = new framework_mapper($this->f1->get('id'), $this->f2->get('id'));
Línea 325... Línea 325...
325
        $this->assertCourseCompetencyMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
325
        $this->assertCourseCompetencyMigrated($this->c2, $this->f1comps['A3'], $this->f2comps['A3']);
326
        $this->assertModuleCompetencyMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
326
        $this->assertModuleCompetencyMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A2'], $this->f2comps['A2']);
327
        $this->assertModuleCompetencyMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
327
        $this->assertModuleCompetencyMigrated($this->cms[$this->c2->id]['F1'], $this->f1comps['A3'], $this->f2comps['A3']);
328
    }
328
    }
Línea 329... Línea 329...
329
 
329
 
330
    public function test_destination_competency_exists() {
330
    public function test_destination_competency_exists(): void {
331
        $this->setAdminUser();
331
        $this->setAdminUser();
Línea 332... Línea 332...
332
        $lpg = $this->getDataGenerator()->get_plugin_generator('core_competency');
332
        $lpg = $this->getDataGenerator()->get_plugin_generator('core_competency');
333
 
333
 
Línea 373... Línea 373...
373
 
373
 
374
        $this->assertCourseCompetencyExists($this->c1, $this->f1comps['A1']);
374
        $this->assertCourseCompetencyExists($this->c1, $this->f1comps['A1']);
375
        $this->assertModuleCompetencyExists($this->cms[$this->c2->id]['F1'], $this->f1comps['A2']);
375
        $this->assertModuleCompetencyExists($this->cms[$this->c2->id]['F1'], $this->f1comps['A2']);
Línea 376... Línea 376...
376
    }
376
    }
377
 
377
 
378
    public function test_destination_competency_exists_remove_original() {
378
    public function test_destination_competency_exists_remove_original(): void {
Línea 379... Línea 379...
379
        $this->setAdminUser();
379
        $this->setAdminUser();
380
        $lpg = $this->getDataGenerator()->get_plugin_generator('core_competency');
380
        $lpg = $this->getDataGenerator()->get_plugin_generator('core_competency');
Línea 409... Línea 409...
409
 
409
 
410
        $this->assertCourseCompetencyNotExists($this->c1, $this->f1comps['A1']);
410
        $this->assertCourseCompetencyNotExists($this->c1, $this->f1comps['A1']);
411
        $this->assertModuleCompetencyNotExists($this->cms[$this->c2->id]['F1'], $this->f1comps['A2']);
411
        $this->assertModuleCompetencyNotExists($this->cms[$this->c2->id]['F1'], $this->f1comps['A2']);
Línea 412... Línea 412...
412
    }
412
    }
Línea 413... Línea 413...
413
 
413
 
Línea 414... Línea 414...
414
    public function test_permission_exception() {
414
    public function test_permission_exception(): void {
415
 
415