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.

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

Step definition to generate database fixtures for learning plan system.

Copyright: 2016 Issam Taboubi <issam.taboubi@umontreal.ca>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 362 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 lib/behat/behat_base.php
 lib/phpunit/classes/util.php

Defines 1 class


Class: behat_tool_lp_data_generators  - X-Ref

Step definition to generate database fixtures for learning plan system.

the_following_lp_exist($elementname, TableNode $data)   X-Ref
Creates the specified element. More info about available elements in https://moodledev.io/general/development/tools/behat.

param: string    $elementname The name of the entity to add
param: TableNode $data

preprocess_competency($data)   X-Ref
Adapt creating competency from framework idnumber or frameworkid.

param: array $data
return: array

preprocess_plan($data)   X-Ref
Adapt creating plan from user username.

param: array $data
return: array

preprocess_user_evidence($data)   X-Ref
Adapt creating user_evidence from user username.

param: array $data
return: array

preprocess_plan_competency($data)   X-Ref
Adapt creating plan_competency from plan name and competency shortname.

param: array $data
return: array

preprocess_user_evidence_competency($data)   X-Ref
Adapt creating plan_competency from user evidence name and competency shortname.

param: array $data
return: array

preprocess_user_competency($data)   X-Ref
Adapt creating user_competency from user name and competency shortname.

param: array $data
return: array

preprocess_user_competency_plan($data)   X-Ref
Adapt creating user_competency_plan from user name, competency shortname and plan name.

param: array $data
return: array