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

Remove unit tests customisation from aggregate_completions


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

      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
            0 Vote for this issue
            1 Start watching this issue


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