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

vendor/bin/phpunit --testsuite core_testsuite fails

    XMLWordPrintable

    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

        Attachments

          Activity

            People

            Assignee:
            binare Eugene Venter
            Reporter:
            binare Eugene Venter
            Peer reviewer:
            Aaron Barnes
            Integrator:
            Dan Poltawski
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

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