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

Fatal error in unittest because library is not included

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 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

    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

              marina Marina Glancy
              marina Marina Glancy
              Damyon Wiese Damyon Wiese
              Damyon Wiese Damyon Wiese
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13