aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2018-01-01 17:50:03 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2018-01-01 17:50:03 +0100
commit8292a2a5d9ae59a2101ed7292133ed6eae5bc8a9 (patch)
tree18a83aecae3b3e61242f38d402e34f7ae0f6a054
parent57e4f87a9f8a9686fd233ad5e9e5ba7506531a7e (diff)
Fix tests question helper
-rw-r--r--tests/helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/helper.php b/tests/helper.php
index 8bab2e5..97639bc 100644
--- a/tests/helper.php
+++ b/tests/helper.php
@@ -82,9 +82,9 @@ class qtype_algebra_test_helper extends question_test_helper {
$qdata->options->compareby = 'eval';
$qdata->options->nchecks = 10;
$qdata->options->tolerance = 0.001;
- $q->options->disallow = '';
- $q->options->allowedfuncs = '';
- $q->options->answerprefix = '';
+ $qdata->options->disallow = '';
+ $qdata->options->allowedfuncs = '';
+ $qdata->options->answerprefix = '';
$qdata->options->answers = array(
13 => new question_answer(13, '7', 1.0, 'This is a very good answer.', FORMAT_HTML),
);