[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/lpmigrate/tests/ -> processor_test.php (summary)

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: 624 lines (32 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tool_lpmigrate_framework_processor_testcase:: (17 methods):
  setUp()
  test_simple_migration()
  test_remove_when_missing()
  test_allowed_courses()
  test_disallowed_courses()
  test_course_start_date_from()
  test_destination_competency_exists()
  test_destination_competency_exists_remove_original()
  test_permission_exception()
  assertCourseCompetencyExists()
  assertCourseCompetencyNotExists()
  assertCourseCompetencyMigrated()
  assertCourseCompetencyNotMigrated()
  assertModuleCompetencyExists()
  assertModuleCompetencyNotExists()
  assertModuleCompetencyMigrated()
  assertModuleCompetencyNotMigrated()


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.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1