Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class


Class: qbank_preview_helper_test  - X-Ref

Helper tests for question preview.

setUp()   X-Ref
Test set up.

This is executed before running any test in this file.

test_question_preview_action_url()   X-Ref
Test the preview action url from the helper class.


test_question_preview_action_url_no_restartversion()   X-Ref
Test the preview action url from the helper class when no restartversion is passed.


test_question_preview_form_url()   X-Ref
Test the preview form url from the helper class.


test_question_preview_url()   X-Ref
Test the preview url from the helper class.


test_question_preview_url_no_restartversion()   X-Ref
Test the preview url from the helper class.


test_get_preview_extra_elements()   X-Ref
Test the preview comment callback if available.


test_load_versions()   X-Ref
Test method load_versions().


test_get_restart_id()   X-Ref
Test method get_restart_id().

This should return the value of the specified version number, or the latest version if ALWAYS_LATEST is passed.

return: void