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

Unit tests contain hard coded file hash

    Details

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

      Replace the image backup/converter/moodle1/simpletest/files/icon.gif with another file of the same name. Run unit tests (to make them run faster limit to the path backup/converter/)

      Expect:

      • tests still pass

      What happens:

      • tests fails
      Show
      Replace the image backup/converter/moodle1/simpletest/files/icon.gif with another file of the same name. Run unit tests (to make them run faster limit to the path backup/converter/) Expect: tests still pass What happens: tests fails
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      In theory this could break tests in the future, I propose calculating the hash dynamically.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12