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

rrule_manager_test is failing again! (Part 3) - Backport for 3.1

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • Hide

      Note https://superuser.com/questions/983905/linux-date-command-not-working

      1. Set your PC's date to a month where it's the 2nd day of the month and the first Monday of the month as well. (e.g. 02-01-2017, 02-10-2017)
      2. Run the core_calendar_rrule_manager_testcase:

        vendor/bin/phpunit calendar/tests/rrule_manager_test.php
        

        • Confirm that everything passes.
      3. Set your PC's date to a month where the first Monday is after the 2nd day of the month. (e.g. 06-02-2017, 03-04-2017)
      4. Run the core_calendar_rrule_manager_testcase:

        vendor/bin/phpunit calendar/tests/rrule_manager_test.php
        

        • Confirm that everything passes.
      5. Set your PC's date to a month where the first Monday is before the 2nd day of the month. (e.g. 01-05-2017, 01-01-2018)
      6. Run the core_calendar_rrule_manager_testcase:

        vendor/bin/phpunit calendar/tests/rrule_manager_test.php
        

        • Confirm that everything passes.

      After the test: Make sure to set your system date back to how it was.

      Show
      Note https://superuser.com/questions/983905/linux-date-command-not-working Set your PC's date to a month where it's the 2nd day of the month and the first Monday of the month as well. (e.g. 02-01-2017, 02-10-2017) Run the core_calendar_rrule_manager_testcase: vendor/bin/phpunit calendar/tests/rrule_manager_test.php Confirm that everything passes. Set your PC's date to a month where the first Monday is after the 2nd day of the month. (e.g. 06-02-2017, 03-04-2017) Run the core_calendar_rrule_manager_testcase: vendor/bin/phpunit calendar/tests/rrule_manager_test.php Confirm that everything passes. Set your PC's date to a month where the first Monday is before the 2nd day of the month. (e.g. 01-05-2017, 01-01-2018) Run the core_calendar_rrule_manager_testcase: vendor/bin/phpunit calendar/tests/rrule_manager_test.php Confirm that everything passes. After the test: Make sure to set your system date back to how it was.

    Description

      Since the fix for MDL-60306 has not been backported to 31. CI is getting failures in 31 because of this.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              David Monllaó David Monllaó
              Mark Nelson Mark Nelson
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/18