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 400 and 401] [Versions 401 and 403]

(no description)

File Size: 323 lines (14 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.


test_get_all_versions_of_question()   X-Ref
Test that all the versions are available from the method.


test_get_all_versions_of_questions()   X-Ref
Test that all the versions of questions are available from the method.