| Línea 31... |
Línea 31... |
| 31 |
*
|
31 |
*
|
| 32 |
* @package core_question
|
32 |
* @package core_question
|
| 33 |
* @copyright 2015 The Open University
|
33 |
* @copyright 2015 The Open University
|
| 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 |
*/
|
35 |
*/
|
| 36 |
class least_used_variant_strategy_test extends \advanced_testcase {
|
36 |
final class least_used_variant_strategy_test extends \advanced_testcase {
|
| Línea 37... |
Línea 37... |
| 37 |
|
37 |
|
| 38 |
public function test_question_with_one_variant_always_picks_that(): void {
|
38 |
public function test_question_with_one_variant_always_picks_that(): void {
|
| 39 |
$question = \test_question_maker::make_question('shortanswer');
|
39 |
$question = \test_question_maker::make_question('shortanswer');
|
| 40 |
$quba = question_engine::make_questions_usage_by_activity('test', \context_system::instance());
|
40 |
$quba = question_engine::make_questions_usage_by_activity('test', \context_system::instance());
|