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

Maildigest tests can query a wrong adhoc task

    XMLWordPrintable

Details

    • Bug
    • Status: Waiting for component lead review
    • Minor
    • Resolution: Unresolved
    • 3.7, 3.9.7, 3.9.14, 3.10.11, 3.11.7, 4.0.1
    • None
    • Forum

    Description

      Mail digest tests collect all records from the task_adhoc table. Other plugins (enrol_auto, enrol_coursecompleted, format_tiles, ...) also add records to this table, so the queries in this test have to be limited to this component only.

      Replication steps:

      1. Install a plugin that creates an adhoc task upon an event (enrol_auto, enrol_coursecompleted, format_tiles, ...)
      2. Run php unit tests

      Expected: No errors
      Actual: 2 errors assertGreaterThanOrEqual(time(), $task->nextruntime)

       

      Attachments

        Issue Links

          Activity

            People

              rdebleu Renaat Debleu
              rdebleu Renaat Debleu
              Mathew May Mathew May
              Adrian Greeve, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m