Línea 32... |
Línea 32... |
32 |
* @copyright 2021 Catalyst IT Australia Pty Ltd
|
32 |
* @copyright 2021 Catalyst IT Australia Pty Ltd
|
33 |
* @author Safat Shahin <safatshahin@catalyst-au.net>
|
33 |
* @author Safat Shahin <safatshahin@catalyst-au.net>
|
34 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
34 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
35 |
* @coversDefaultClass \mod_quiz\question\bank\qbank_helper
|
35 |
* @coversDefaultClass \mod_quiz\question\bank\qbank_helper
|
36 |
*/
|
36 |
*/
|
37 |
class qbank_helper_test extends \advanced_testcase {
|
37 |
final class qbank_helper_test extends \advanced_testcase {
|
38 |
use \quiz_question_helper_test_trait;
|
38 |
use \quiz_question_helper_test_trait;
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
/**
|
40 |
/**
|
41 |
* @var \stdClass test student user.
|
41 |
* @var \stdClass test student user.
|
Línea 86... |
Línea 86... |
86 |
$question = reset($questions);
|
86 |
$question = reset($questions);
|
87 |
$structure = structure::create_for_quiz($quizobj);
|
87 |
$structure = structure::create_for_quiz($quizobj);
|
88 |
$slots = $structure->get_slots();
|
88 |
$slots = $structure->get_slots();
|
89 |
$slot = reset($slots);
|
89 |
$slot = reset($slots);
|
90 |
$this->assertEquals(3, count(qbank_helper::get_version_options($question->id)));
|
90 |
$this->assertEquals(3, count(qbank_helper::get_version_options($question->id)));
|
- |
|
91 |
$this->assertDebuggingCalled();
|
91 |
$this->assertEquals($question->id, qbank_helper::choose_question_for_redo(
|
92 |
$this->assertEquals($question->id, qbank_helper::choose_question_for_redo(
|
92 |
$quiz->id, $context, $slot->id, new \qubaid_list([])));
|
93 |
$quiz->id, $context, $slot->id, new \qubaid_list([])));
|
Línea 93... |
Línea 94... |
93 |
|
94 |
|
94 |
// Create another version.
|
95 |
// Create another version.
|