Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-13517 Moodle 3.8 QA
  3. MDLQA-14073

CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI

XMLWordPrintable

      Note: This test should be run with Moodle running on a Windows and a Linux server. If you are only able to test with one server type, please do so and mention it in a comment.

      1. Log in as an admin and go to Site administration / Server / System paths.
      2. Set "Path to PHP CLI" to the path to your PHP executable.
        • On Linux, you can use the value returned by the command "which php" on your terminal.
        • On Windows, you can use the value returned by the command "where php" on your terminal.
      3. Go to Site administration / Server / Scheduled tasks.
      4. Confirm that there is a "Run now" button in most (if not all) of the tasks.
      5. Click "Run now" for the "Forum mailings and maintenance jobs" task.
      6. On the confirmation prompt, confirm to run the task.
      7. Confirm that the task executes successfully without any errors (except maybe when the outgoing email settings have not been properly configured and that Moodle can't send email messages. This is fine. The important thing is that the task executes okay.)
      8. Go back to the Scheduled tasks page.
      9. Open another browser tab and go to Site administration / Server / System paths
      10. Remove the value in "Path to PHP CLI".
      11. Back on the Scheduled tasks page, click on "Run now" in any of the tasks listed.
      12. On the confirmation prompt, confirm to run the task.
      13. Confirm that you get an error that the path to the PHP CLI can't be found.
      14. Click on "Continue"
      15. Confirm that you are redirected to the System paths page.
      16. Leave the Path to PHP CLI setting blank.
      17. Go back to the scheduled tasks page.
      18. Confirm that the "Run now" links are not shown in any of the scheduled tasks.

        1. boost.png
          322 kB
          Janelle Barcega
        2. classic.png
          285 kB
          Janelle Barcega

            jbarcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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