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

PHPunit does not report errors when there are missing prerequisites

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.7, 2.4.4, 2.5, 2.6
    • Fix Version/s: 2.3.8, 2.4.5, 2.5.1
    • Component/s: Unit tests
    • Labels:
    • Testing Instructions:
      Hide

      1/ execute phpunit tests with all extensions - no failure expected
      2/ uninstall php-intl extension - failure expected with basic message that tells you something is wrong with environment

      Show
      1/ execute phpunit tests with all extensions - no failure expected 2/ uninstall php-intl extension - failure expected with basic message that tells you something is wrong with environment
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w23_MDL-39465_m26_environment

      Description

      Sometimes a Moodle site is setup only for phpunit (e.g. for testing MSSQL) and some Moodle prerequisites are forgotten (e.g. "intl"). If it would not be a big performance hit, we should detect missing prerequisites and refuse to run.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13