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

Behat step {{i_run_all_adhoc_tasks}} is completely wrong.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install the attached local/mdl62653 plugin
      2. Init behat
      3. Run the feature file in local/mdl62653/tests/behat (--name 'I can call cron during behat'
        1. Confirm that two tests pass
        2. Confirm that two tests fail
      Show
      Install the attached local/mdl62653 plugin Init behat Run the feature file in local/mdl62653/tests/behat ( --name 'I can call cron during behat' Confirm that two tests pass Confirm that two tests fail
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-62653-master

      Description

      The behat task i_run_all_adhoc_tasks is completely wrong and must be fixed.
      It:

      1. does not handle users properly
      2. does not setup the renderer properly
      3. does not handle transactions properly

      We should just use cron_run_inner_adhoc_task and check whether any task failed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Lyons
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Jun Pataleta Jun Pataleta
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Mihail Geshoski Mihail Geshoski
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18