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.

(no description)

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

Defines 1 class


Class: get_feedback_test  - X-Ref

Unit tests for the core_grades\external\get_feedback webservice.

test_get_feedback(?string $feedback, array $expected)   X-Ref
Test get_feedback.

param: string|null $feedback The feedback text added for the grade item.
param: array $expected The expected feedback data.
return: void

get_feedback_provider()   X-Ref
Data provider for test_get_feedback().

return: array

test_get_feedback_invalid_request(string $loggeduserrole, bool $feedbacknotincourse,array $expectedexception = [])   X-Ref
Test get_feedback with invalid requests.

param: string $loggeduserrole The role of the logged user.
param: bool $feedbacknotincourse Whether to request a feedback for a grade item which is not a part of the course.
param: array $expectedexception The expected exception.
return: void

get_feedback_invalid_request_provider()   X-Ref
Data provider for test_get_feedback_invalid_request().

return: array