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

Remove unit tests customisation from aggregate_completions

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0
    • Course completion
    • MOODLE_400_STABLE

      In MDL-32103 we added these line for tests:

              if (PHPUNIT_TEST) {
                  // MDL-33320: for instant completions we need aggregate to work in a single run.
                  $DB->set_field('course_completions', 'reaggregate', $timestarted - 2);
              }
      

      As we need cron to work on first run. Its safer to do what Behat does at the moment and just run cron twice and wait 1 sec between runs. Not ideal, but at least it is not change completion date by direct sql

            Unassigned Unassigned
            ilyatregubov Ilya Tregubov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.