Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: processor_test  - 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.