Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-1526

A teacher is warned when a backup contains a file reference (alias/shortcut to a file)

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Trivial
    • Affects Version/s: Master copy - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Component/s: Backup, Repositories, Teacher
    • Labels:
      None

      Description

      1. Log in as a teacher and go to your Private files.
      2. Upload a file and save changes.
      3. Go to a course where you have teacher rights, turn editing on and add a file resource.
      4. Select the file you uploaded to your Private files, choosing 'Create an alias/shortcut to the file' then save changes.
      5. Backup the course, and at the end of backup process, verify that a warning is displayed: "File references to external contents are included in the backup file. These won't work if the backup is restored on a different site."
      6. Download the backup file.
      7. Restore the course on another Moodle site, such as the Moodle Sandbox demo site.
      8. At the end of restore process, verify that a warning is displayed saying that some files cannot be restored because they are references.
      9. Restore the course on the original site.
      10. Verify that no warning is displayed and that all file references are restored correctly.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: