Test helper class for the match question type.
More...
Test helper class for the match question type.
- Copyright
- 2013 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_match_question_data_foursubq()
qtype_match_test_helper::get_match_question_data_foursubq |
( |
| ) |
|
Makes a match question about completing two blanks in some text.
- Return values
-
object | the question definition data, as it might be returned from get_question_options. |
◆ get_match_question_data_trickynums()
qtype_match_test_helper::get_match_question_data_trickynums |
( |
| ) |
|
Makes a matching question with choices including '0' and '0.0'.
- Return values
-
object | the question definition data, as it might be returned from get_question_options. |
◆ get_match_question_form_data_foursubq()
qtype_match_test_helper::get_match_question_form_data_foursubq |
( |
| ) |
|
Makes a match question about completing two blanks in some text.
- Return values
-
object | the question definition data, as it might be returned from the question editing form. |
◆ get_match_question_form_data_trickynums()
qtype_match_test_helper::get_match_question_form_data_trickynums |
( |
| ) |
|
Makes a match question about completing two blanks in some text.
- Return values
-
object | the question definition data, as it might be returned from the question editing form. |
◆ get_question_editing_form()
static question_test_helper::get_question_editing_form |
( |
| $cat, |
|
|
| $questiondata ) |
|
staticinherited |
Set up a form to create a question in $cat.
This method also sets cat and contextid on $questiondata object.
- Parameters
-
object | $cat | the category |
object | $questiondata | form initialisation requires question data. |
- Return values
-
◆ get_test_questions()
qtype_match_test_helper::get_test_questions |
( |
| ) |
|
◆ make_match_question_foursubq()
static qtype_match_test_helper::make_match_question_foursubq |
( |
| ) |
|
|
static |
Makes a matching question to classify 'Dog', 'Frog', 'Toad' and 'Cat' as 'Mammal', 'Amphibian' or 'Insect'.
defaultmark 1. Stems are shuffled by default.
- Return values
-
◆ make_match_question_trickynums()
static qtype_match_test_helper::make_match_question_trickynums |
( |
| ) |
|
|
static |
Makes a matching question with choices including '0' and '0.0'.
- Return values
-
The documentation for this class was generated from the following file:
- question/type/match/tests/helper.php