aboutsummaryrefslogtreecommitdiff
path: root/tests/questiontype_test.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2018-01-01 23:18:32 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2018-01-01 23:18:32 +0100
commit97a4d3fc97ab9f8cc58ab693989fbec2b152998c (patch)
treee2502639324d188aece5b5f7495b7084c2a965f7 /tests/questiontype_test.php
parentddb061f88f3958ea17701090774d1f582376a348 (diff)
Improve test helper
Diffstat (limited to 'tests/questiontype_test.php')
-rw-r--r--tests/questiontype_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/questiontype_test.php b/tests/questiontype_test.php
index 929b074..07ab4c3 100644
--- a/tests/questiontype_test.php
+++ b/tests/questiontype_test.php
@@ -58,7 +58,7 @@ class qtype_algebra_test extends advanced_testcase {
}
public function test_name() {
- $this->assertEquals($this->qtype->name(), 'algebra', 'simplemath');
+ $this->assertEquals($this->qtype->name(), 'algebra');
}
public function test_can_analyse_responses() {
@@ -66,7 +66,7 @@ class qtype_algebra_test extends advanced_testcase {
}
public function test_get_random_guess_score() {
- $q = test_question_maker::get_question_data('algebra', 'simplemath');
+ $q = test_question_maker::get_question_data('algebra');
$q->options->answers[15]->fraction = 0.1;
$this->assertEquals(0.1, $this->qtype->get_random_guess_score($q));
}