Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Unit tests for assignsubmission_file.

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

Defines 1 class


Class: assignsubmission_file_privacy_testcase  - X-Ref

Unit tests for mod/assign/submission/file/classes/privacy/

create_file_submission($assign, $student, $filename)   X-Ref
Convenience function for creating feedback data.

param: object   $assign         assign object
param: stdClass $student        user object
param: string   $filename       filename for the file submission
return: array   Submission plugin object and the submission object.

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


test_export_submission_user_data()   X-Ref
Test that submission files are exported for a user.


test_delete_submission_for_context()   X-Ref
Test that all submission files are deleted for this context.


test_delete_submission_for_userid()   X-Ref
Test that the comments for a user are deleted.


test_delete_submissions()   X-Ref
Test deletion of bulk submissions for a context.