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

mod/quiz/tests/lib_test.php does not require locallib.php when it should

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.8.3, 2.9
    • Quiz
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-49295-master
    • Hide

      Note: You cannot refer to the nightly CI server for this test - the problem does not effect the CI server. Must be run manually

      1. Run vendor/bin/phpunit mod/quiz/tests/lib_test.php
      2. Run vendor/bin/phpunit --testsuite "mod_quiz_testsuite"
      3. Ensure no errors occur
      Show
      Note: You cannot refer to the nightly CI server for this test - the problem does not effect the CI server. Must be run manually Run vendor/bin/phpunit mod/quiz/tests/lib_test.php Run vendor/bin/phpunit --testsuite "mod_quiz_testsuite" Ensure no errors occur

      It appears to be missing

      global $CFG;
      require_once($CFG->dirroot . '/mod/quiz/locallib.php');

      This causes the unit test to fail when only that specific test is run

            johno John Okely
            johno John Okely
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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