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]

Contains the helper class for the select missing words question type tests.

Copyright: 2011 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 314 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: qtype_gapselect_test_helper  - X-Ref

Test helper class for the select missing words question type.

get_test_questions()   X-Ref
No description

get_gapselect_question_data_fox()   X-Ref
Get data you would get by loading a typical select missing words question.

return: stdClass as returned by question_bank::load_question_data for this qtype.

get_gapselect_question_form_data_missingchoiceno()   X-Ref
Get data required to save a select missing words question where
the author missed out one of the group numbers.

return: stdClass data to create a gapselect question.

make_gapselect_question_fox()   X-Ref
Get an example gapselect question to use for testing. This examples has one of each item.

return: qtype_gapselect_question

make_gapselect_question_maths()   X-Ref
Get an example gapselect question to use for testing. This exmples had unlimited items.

return: qtype_gapselect_question

make_gapselect_question_multilang()   X-Ref
Get an example gapselect question with multilang entries to use for testing.

return: qtype_gapselect_question

make_gapselect_question_currency()   X-Ref
This examples includes choices with currency like options.

return: qtype_gapselect_question

make_a_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_maths_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_currency_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_multilang_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question