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]

Unit tests for assignfeedback_comments.

Copyright: 2018 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 350 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: provider_test  - X-Ref

Unit tests for mod/assign/feedback/comments/classes/privacy/

create_feedback($assign, $student, $teacher, $submissiontext, $feedbacktext)   X-Ref
Convenience function for creating feedback data.

param: object   $assign         assign object
param: \stdClass $student        user object
param: \stdClass $teacher        user object
param: string   $submissiontext Submission text
param: string   $feedbacktext   Feedback text
return: array   Feedback plugin object and the grade object.

test_get_metadata()   X-Ref
Quick test to make sure that get_metadata returns something.


test_export_feedback_user_data()   X-Ref
Test that feedback comments are exported for a user.


test_delete_feedback_for_context()   X-Ref
Test that all feedback is deleted for a context.


test_delete_feedback_for_grade()   X-Ref
Test that a grade item is deleted for a user.


test_delete_feedback_for_grades()   X-Ref
Test that a grade item is deleted for a user.