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

Unit tests fail because time zone modified in previous test

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.2, 2.8, 2.9
    • 2.7.5, 2.8.3
    • Unit tests

    Description

      backup/util/helper/tests/cronhelper_test.php changes time zone while performing its tests but does not put time zone back to previous value.
      This causes subsequent tests to fail that depend on correct time zone.
      Database is Oracle 12.
      Moodle version 2.6.6+
      (Note: current code in git does not correct this.)
      Tests that fail are:
      lib/tests/statslib_test.php
      enrol/imsenterprise/tests/imsenterprise_test.php

      These tests will pass when run individually.

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              rbon Ray Bon
              Ankit Agarwal Ankit Agarwal
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2/Feb/15