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

Restore test error in behat

    XMLWordPrintable

    Details

      Description

      Behat test "Restore a backup in an existing course retaining the backup course settings" is asserting wrong behavior.

      When backup of one course is merged into another course the visibility of existing sections should not be changed. However this test asserts that it was changed.

      The reason why it happens is because sections for the target course were never created - they are only created during the first visit to the course.

      In MDL-57769 I change the create_course function to force it to create all sections during course creation and this test started failing. I don't know if/when MDL-57769 will be accepted to core so I'm creating a new issue about the behat error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: