-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.4, 4.4
PHPUnit test test_admin_output_new_settings_by_page in adminlib_test fails when we have other plugins with extra settings and without defaults in the config.
E.g.,
core\adminlib_test::test_admin_output_new_settings_by_pageFailed asserting that two arrays are identical.--- Expected+++ Actual@@ @@-Array &0 ()+Array &0 (+ 'modsettingsquizcatanswersheets' => '-->New settings - Export quiz attempts\n+<fieldset class="adminsettings">\n+<div class="clearer"><!-- --></div>\n+<div class="form-item row" id="admin-instruction_message">\n+ <div class="form-label col-sm-3 text-sm-right">\n+ <label for="id_s_quiz_answersheets_instruction_message">\n+ Instruction message\n+ </label>\n+ <span class="form-shortname d-block small text-muted">quiz_answersheets | instruction_message</span>\n+ </div>\n+ <div class="form-setting col-sm-9">\n+ <div class="form-textarea">\n+ <textarea rows="8" cols="60" id="id_s_quiz_answersheets_instruction_message" name="s_quiz_answersheets_instruction_message" spellcheck="true" class="form-control "></textarea>\n+</div>\n+ <div class="form-description mt-3"><p>If set, this text will be shown at the top of the report. You can use this, for example, to link to any institutional policies about printing summative quizzes.</p>\n+</div>\n+ \n+ </div>\n+</div></fieldset>'+)/var/www/html/lib/tests/adminlib_test.php:151/var/www/html/lib/phpunit/classes/advanced_testcase.php:81 |
- has a non-specific relationship to
-
MDL-62483 Should be harder to write fragile unit tests that make unwarranted assumptions about a new Moodle install
- Open