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

Fatal error in unittest because library is not included

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Course
    • Labels:
      None
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-39482-master

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13