MDL-29571 qtype description refactor unit test code a bit.

This commit is contained in:
Tim Hunt
2011-10-04 11:52:20 +02:00
committed by Eloy Lafuente (stronk7)
parent 133173e213
commit 5e69fe4971
6 changed files with 99 additions and 24 deletions
@@ -41,7 +41,7 @@ class question_attempt_step_iterator_test extends UnitTestCase {
private $iterator;
public function setUp() {
$question = test_question_maker::make_a_description_question();
$question = test_question_maker::make_question('description');
$this->qa = new testable_question_attempt($question, 0);
for ($i = 0; $i < 3; $i++) {
$step = new question_attempt_step(array('i' => $i));