-
Functional Test
-
Minor
-
Moodle 3.8
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.
- Log in as an admin and go to Site administration / Server / System paths.
- 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.
- Go to Site administration / Server / Scheduled tasks.
- Confirm that there is a "Run now" button in most (if not all) of the tasks.
- Click "Run now" for the "Forum mailings and maintenance jobs" task.
- On the confirmation prompt, confirm to run the task.
- 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.)
- Go back to the Scheduled tasks page.
- Open another browser tab and go to Site administration / Server / System paths
- Remove the value in "Path to PHP CLI".
- Back on the Scheduled tasks page, click on "Run now" in any of the tasks listed.
- On the confirmation prompt, confirm to run the task.
- Confirm that you get an error that the path to the PHP CLI can't be found.
- Click on "Continue"
- Confirm that you are redirected to the System paths page.
- Leave the Path to PHP CLI setting blank.
- Go back to the scheduled tasks page.
- Confirm that the "Run now" links are not shown in any of the scheduled tasks.