Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

File Size: 88 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

quiz_structure_modified_test:: (1 method):
  test_clear_cache_on_structure_modified()


Class: quiz_structure_modified_test  - X-Ref

Unit tests for quiz_statistics\event\observer\slots_updated

test_clear_cache_on_structure_modified()   X-Ref
Clear the statistics cache for a quiz when it structure is modified.

When recompute_quiz_sumgrades() is called, it should trigger this plugin's quiz_structure_modified callback
which clears the statistics cache for the quiz.

return: void