| Línea 36... |
Línea 36... |
| 36 |
* @copyright 2010 The Open University
|
36 |
* @copyright 2010 The Open University
|
| 37 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
37 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 38 |
* @covers \qtype_multichoice_single_question
|
38 |
* @covers \qtype_multichoice_single_question
|
| 39 |
* @covers \qtype_multichoice_single_base
|
39 |
* @covers \qtype_multichoice_single_base
|
| 40 |
*/
|
40 |
*/
|
| 41 |
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
|
41 |
final class walkthrough_test extends \qbehaviour_walkthrough_test_base {
|
| 42 |
public function test_deferredfeedback_feedback_multichoice_single(): void {
|
42 |
public function test_deferredfeedback_feedback_multichoice_single(): void {
|
| Línea 43... |
Línea 43... |
| 43 |
|
43 |
|
| 44 |
// Create a multichoice, single question.
|
44 |
// Create a multichoice, single question.
|
| 45 |
$mc = \test_question_maker::make_a_multichoice_single_question();
|
45 |
$mc = \test_question_maker::make_a_multichoice_single_question();
|
| Línea 301... |
Línea 301... |
| 301 |
$this->start_attempt_at_question($mc, 'deferredfeedback', 3);
|
301 |
$this->start_attempt_at_question($mc, 'deferredfeedback', 3);
|
| 302 |
$this->render();
|
302 |
$this->render();
|
| Línea 303... |
Línea 303... |
| 303 |
|
303 |
|
| 304 |
// Check for 'Show standard instruction'.
|
304 |
// Check for 'Show standard instruction'.
|
| 305 |
$standardinstruction = \html_writer::tag('legend', get_string('answer'), [
|
305 |
$standardinstruction = \html_writer::tag('legend', get_string('answer'), [
|
| 306 |
'class' => 'prompt h6 font-weight-normal sr-only'
|
306 |
'class' => 'prompt h6 fw-normal visually-hidden',
|
| 307 |
]);
|
307 |
]);
|
| 308 |
$this->assertStringContainsString($standardinstruction, $this->currentoutput);
|
308 |
$this->assertStringContainsString($standardinstruction, $this->currentoutput);
|
| Línea 309... |
Línea 309... |
| 309 |
}
|
309 |
}
|