Test helper class for the multianswer question type.
More...
Test helper class for the multianswer question type.
- Copyright
- 2013 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_multianswer_question_data_dollarsigns()
qtype_multianswer_test_helper::get_multianswer_question_data_dollarsigns |
( |
| ) |
|
Makes a multianswer question onetaining one blank in some text.
This question has no hints.
- Return values
-
object | the question definition data, as it might be returned from get_question_options. |
◆ get_multianswer_question_data_twosubq()
qtype_multianswer_test_helper::get_multianswer_question_data_twosubq |
( |
| ) |
|
Makes a multianswer 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_multianswer_question_form_data_twosubq()
qtype_multianswer_test_helper::get_multianswer_question_form_data_twosubq |
( |
| ) |
|
Makes a multianswer 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_multianswer_test_helper::get_test_questions |
( |
| ) |
|
◆ make_multianswer_question_fourmc()
qtype_multianswer_test_helper::make_multianswer_question_fourmc |
( |
| ) |
|
Makes a multianswer question about completing two blanks in some text.
- Return values
-
◆ make_multianswer_question_multiple()
qtype_multianswer_test_helper::make_multianswer_question_multiple |
( |
| ) |
|
Makes a multianswer question with multichoice_multiple questions in it.
- Return values
-
◆ make_multianswer_question_numericalzero()
qtype_multianswer_test_helper::make_multianswer_question_numericalzero |
( |
| ) |
|
Makes a multianswer question with one numerical subquestion, right answer 0.
This is used for testing the MDL-35370 bug.
- Return values
-
◆ make_multianswer_question_twosubq()
qtype_multianswer_test_helper::make_multianswer_question_twosubq |
( |
| ) |
|
Makes a multianswer question about completing two blanks in some text.
- Return values
-
The documentation for this class was generated from the following file: