Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 311 and 402] [Versions 400 and 402] [Versions 401 and 402]

Privacy tests for gradingform_guide.

Copyright: 2018 Sara Arjona <sara@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 217 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: provider_test  - X-Ref

Privacy tests for gradingform_guide.

test_export_user_preferences_not_defined()   X-Ref
Ensure that export_user_preferences returns no data if the user has no data.


test_export_user_preferences()   X-Ref
Ensure that export_user_preferences returns single preferences.


test_get_gradingform_export_data()   X-Ref
Test the export of guide data.


test_delete_gradingform_for_instances()   X-Ref
Test the deletion of guide user information via the instance ID.


get_test_guide(\context_module $context)   X-Ref
Generate a guide controller with sample data required for testing of this class.

param: \context_module $context
return: \gradingform_guide_controller

get_test_form_data(\gradingform_guide_controller $controller,int $itemid,float $spellingscore,string $spellingremark,float $picturescore,string $pictureremark)   X-Ref
Fetch a set of sample data.

param: \gradingform_guide_controller $controller
param: int $itemid
param: float $spellingscore
param: string $spellingremark
param: float $picturescore
param: string $pictureremark
return: array