Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

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: 307 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