-
Functional Test
-
Minor
-
Moodle 4.1
- Log in as admin.
- Visit your profile or another user profile and then click All logs.
- Make sure a bar chart has been generated for the 24 hrs period.
- Ensure data shown is as expected.
- Go back to profile page and then click Today's logs.
- Make sure the bar chart is generated.
- Ensure data shown is as expected.
- In a course, go to Participants page and click on a user then click All logs.
- Make sure the chart is generated in the correct period.
- Ensure data shown is as expected.
- Go back to the user's course profile page and then click Today's logs.
- Make sure the bar chart is generated.
- Ensure data shown is as expected.
- Edit your config.php and add the following line:
- $CFG->preferlinegraphs = true;
- Visit both report pages and make sure the chart now is displayed on line type.
- Try to access report/log/graph.php directly on your browser, you should see an error message.
This way of generating the chart is deprecated, refer to report_log_print_graph()
- is a QA test written for
-
MDL-54987 Introduce a new chart API and library
- Closed