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

Maildigest tests can query a wrong adhoc task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Install a plugin that creates an adhoc task upon an event (enrol_auto, enrol_coursecompleted, format_tiles, ...)
      2. Run php unit tests

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

      Expected result: No errors

      Show
      Install a plugin that creates an adhoc task upon an event (enrol_auto, enrol_coursecompleted, format_tiles, ...) Run php unit tests Actual result: 2 errors assertGreaterThanOrEqual(time(), $task->nextruntime) Expected result: No errors
    • Affected Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-65939-master

      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.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rdebleu Renaat Debleu
              Reporter:
              rdebleu Renaat Debleu
              Peer reviewer:
              Mathew May
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m