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

Module not added to section for unit test generation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.4
    • Component/s: Unit tests
    • Labels:

      Description

      phpunit_module_generator::precreate_course_module() takes an options array. One of the options is a section. The course_modules record needs a section record ID while add_mod_to_section() takes a section number (EG: 0,1,2,3,etc). Basically the activity is not added to the proper section's sequence.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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