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

contexts table not set up correctly for unit testing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      I only get one context in my test table, the system one. I would expect a front-page course to have been set up, but perhaps I am wrong about that.

      More seriously, the system context has path /1/1 and depth 2. That should be path /1 and depth 1.

      Also, the role assignments table is empty. Is that expected, I would have expected an assignment to admin, but again that might be a wrong expectation.

      Apart from that, the rest of the roles stuff seems to have been set up correctly.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: