Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.