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

vendor/bin/phpunit --testsuite core_testsuite fails

    Details

    • Testing Instructions:
      Hide

      Run (individually):
      vendor/bin/phpunit --testsuite core_testsuite
      vendor/bin/phpunit lib/tests/accesslib_test.php
      vendor/bin/phpunit lib/tests/statslib_test.php

      Show
      Run (individually): vendor/bin/phpunit --testsuite core_testsuite vendor/bin/phpunit lib/tests/accesslib_test.php vendor/bin/phpunit lib/tests/statslib_test.php
    • Difficulty:
      Difficult
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE

      Description

      The above fails with:
      1) core_accesslib_testcase::test_context_comparisons
      Warning: unexpected database modification, resetting DB state
      Warning: unexpected change of $CFG->timezone value

      Running the PHPUnit tests on just the file in question works:
      vendor/bin/phpunit lib/tests/accesslib_test.php

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/14