Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 262 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: version_test  - X-Ref

Question version unit tests.

setUp()   X-Ref
Called before every test.


test_make_question_create_version_and_bank_entry()   X-Ref
Test if creating a question a new version and bank entry records are created.


test_delete_question_delete_versions()   X-Ref
Test if deleting a question the related version and bank entry records are deleted.


test_delete_question_in_use()   X-Ref
Test if deleting a question will not break a quiz.


test_move_category_with_questions()   X-Ref
Test if moving a category will not break a quiz.


test_id_number_in_bank_entry()   X-Ref
Test that all versions will have the same bank entry idnumber value.