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

Fatal error in unittest because library is not included

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.5
    • Course
    • None
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • wip-MDL-39482-master
    • Hide

      run only one test:
      phpunit coursecatlib_testcase lib/tests/coursecatlib_test.php

      1. Create several course categories and a course
      2. Move course from one category to another in /course/manage.php, make sure there are no errors
      Show
      run only one test: phpunit coursecatlib_testcase lib/tests/coursecatlib_test.php Create several course categories and a course Move course from one category to another in /course/manage.php, make sure there are no errors

      It probably can not be reproduced somehow else but when running only one phpunit test

      phpunit coursecatlib_testcase lib/tests/coursecatlib_test.php

      there is an error:

      Fatal error: Call to undefined function get_category_or_system_context() in /home/marina/repositories/testing/moodle/lib/coursecatlib.php on line 1491

            marina Marina Glancy
            marina Marina Glancy
            Damyon Wiese Damyon Wiese
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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