Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

Framework processor tests.

Copyright: 2016 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 620 lines (32 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: tool_lpmigrate_framework_processor_testcase  - X-Ref

Framework processor testcase.

setUp()   X-Ref
This sets up a few things, and assign class variables.

We create 2 frameworks, each with 2 matching competencies and 1 foreign.
Then we create 2 courses, and in each 1 CM.
Then we attach some competencies from the first framework to courses and CM.

test_simple_migration()   X-Ref
No description

test_remove_when_missing()   X-Ref
No description

test_allowed_courses()   X-Ref
No description

test_disallowed_courses()   X-Ref
No description

test_course_start_date_from()   X-Ref
No description

test_destination_competency_exists()   X-Ref
No description

test_destination_competency_exists_remove_original()   X-Ref
No description

test_permission_exception()   X-Ref
No description

assertCourseCompetencyExists($course, $competency)   X-Ref
Assert that the course competency exists.

param: stdClass $course The course.
param: competency $competency The competency.

assertCourseCompetencyNotExists($course, $competency)   X-Ref
Assert that the course competency does not exist.

param: stdClass $course The course.
param: competency $competency The competency.

assertCourseCompetencyMigrated($course, $compfrom, $compto)   X-Ref
Assert that the course competency was migrated.

param: stdClass $course The course.
param: competency $compfrom The competency from.
param: competency $compto The competency to.

assertCourseCompetencyNotMigrated($course, $compfrom, $compto)   X-Ref
Assert that the course competency was not migrated.

param: stdClass $course The course.
param: competency $compfrom The competency from.
param: competency $compto The competency to.

assertModuleCompetencyExists($cm, $competency)   X-Ref
Assert that the course module competency exists.

param: stdClass $cm The CM.
param: competency $competency The competency.

assertModuleCompetencyNotExists($cm, $competency)   X-Ref
Assert that the course module competency does not exist.

param: stdClass $cm The CM.
param: competency $competency The competency.

assertModuleCompetencyMigrated($cm, $compfrom, $compto)   X-Ref
Assert that the course module competency was migrated.

param: stdClass $cm The CM.
param: competency $compfrom The competency from.
param: competency $compto The competency to.

assertModuleCompetencyNotMigrated($cm, $compfrom, $compto)   X-Ref
Assert that the course module competency was not migrated.

param: stdClass $cm The CM.
param: competency $compfrom The competency from.
param: competency $compto The competency to.