mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
Merge branch 'MDL-71251-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
0bbdf3b910
@ -247,6 +247,8 @@ class qtype_essay_question extends question_with_responses {
|
||||
'filetypeslist' => $this->filetypeslist,
|
||||
'responsetemplate' => $this->responsetemplate,
|
||||
'responsetemplateformat' => $this->responsetemplateformat,
|
||||
'minwordlimit' => $this->minwordlimit,
|
||||
'maxwordlimit' => $this->maxwordlimit,
|
||||
];
|
||||
|
||||
return $settings;
|
||||
|
@ -307,6 +307,7 @@ class qtype_essay_question_test extends advanced_testcase {
|
||||
$this->resetAfterTest();
|
||||
|
||||
$essay = test_question_maker::make_an_essay_question();
|
||||
$essay->minwordlimit = 15;
|
||||
$essay->start_attempt(new question_attempt_step(), 1);
|
||||
$qa = test_question_maker::get_a_qa($essay);
|
||||
$displayoptions = new question_display_options();
|
||||
@ -322,6 +323,8 @@ class qtype_essay_question_test extends advanced_testcase {
|
||||
$this->assertNull($options['filetypeslist']);
|
||||
$this->assertEquals('', $options['responsetemplate']);
|
||||
$this->assertEquals(FORMAT_MOODLE, $options['responsetemplateformat']);
|
||||
$this->assertEquals($essay->minwordlimit, $options['minwordlimit']);
|
||||
$this->assertNull($options['maxwordlimit']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user