Línea 33... |
Línea 33... |
33 |
* @copyright 2009 The Open University
|
33 |
* @copyright 2009 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 |
* @covers \qbehaviour_informationitem
|
35 |
* @covers \qbehaviour_informationitem
|
36 |
*/
|
36 |
*/
|
37 |
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
|
37 |
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
|
38 |
public function test_informationitem_feedback_description() {
|
38 |
public function test_informationitem_feedback_description(): void {
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
// Create a true-false question with correct answer true.
|
40 |
// Create a true-false question with correct answer true.
|
41 |
$description = \test_question_maker::make_question('description');
|
41 |
$description = \test_question_maker::make_question('description');
|
Línea 87... |
Línea 87... |
87 |
// Check that trying to process a manual comment with a grade causes an exception.
|
87 |
// Check that trying to process a manual comment with a grade causes an exception.
|
88 |
$this->expectException('moodle_exception');
|
88 |
$this->expectException('moodle_exception');
|
89 |
$this->manual_grade('Not good enough!', 1, FORMAT_HTML);
|
89 |
$this->manual_grade('Not good enough!', 1, FORMAT_HTML);
|
90 |
}
|
90 |
}
|
Línea 91... |
Línea 91... |
91 |
|
91 |
|
Línea 92... |
Línea 92... |
92 |
public function test_informationitem_regrade() {
|
92 |
public function test_informationitem_regrade(): void {
|
93 |
|
93 |
|
94 |
// Create a true-false question with correct answer true.
|
94 |
// Create a true-false question with correct answer true.
|