diff --git a/tests/attempt_ui/question_ui_renderer_test.php b/tests/attempt_ui/question_ui_renderer_test.php
index 5335a09..5f95859 100644
--- a/tests/attempt_ui/question_ui_renderer_test.php
+++ b/tests/attempt_ui/question_ui_renderer_test.php
@@ -19,13 +19,17 @@
defined('MOODLE_INTERNAL') || die();
global $CFG;
+require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
require_once($CFG->dirroot . '/question/type/questionpy/question.php');
use coding_exception;
use PHPUnit\Framework\MockObject\Stub;
use qtype_questionpy\api\api;
+use qtype_questionpy\constants;
use qtype_questionpy_question;
use question_attempt;
+use question_attempt_step;
+use testable_question_attempt;
/**
* Unit tests for {@see question_ui_renderer}.
@@ -80,7 +84,7 @@ public function test_should_hide_inline_feedback(): void {
No feedback
- EXPECTED, $result);
+ EXPECTED, $result->html);
}
/**
@@ -104,7 +108,7 @@ public function test_should_show_inline_feedback(): void {
General feedback
Specific feedback
- EXPECTED, $result);
+ EXPECTED, $result->html);
}
/**
@@ -122,27 +126,27 @@ public function test_should_mangle_names(): void {
$result = $ui->render();
$this->assert_html_string_equals_html_string(<<
-