Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81915

Unit test test_admin_output_new_settings_by_page in adminlib_test is failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.3.5, 4.4.1
    • 4.3.4, 4.4
    • Unit tests

      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

            Anupama Sarjoshi Anupama Sarjoshi
            Anupama Sarjoshi Anupama Sarjoshi
            Mahmoud Kassaei Mahmoud Kassaei
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.