Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Unit tests for get_entity_generator web service

Author: Mark Johnson <mark.johnson@catalyst-eu.net>
Copyright: 2022 onwards Catalyst IT EU {@link https://catalyst-eu.net}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 104 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: get_entity_generator_test  - X-Ref

Tests for get_entity_generator web service

setUp()   X-Ref
Log in as admin

return: void

test_execute_core_entity()   X-Ref
Get the generator for a core entity.

return: void

test_execute_plugin_entity()   X-Ref
Get the generator for the plugin entity.

return: void

test_execute_no_requried()   X-Ref
Get the generator for an entity with no required fields.

return: void

test_execute_invalid_entity()   X-Ref
Attempt to get the generator for a core entity that does not exist.

return: void

test_execute_invalid_plugin()   X-Ref
Attempt to get a generator form a plugin that does not exist.

return: void

test_execute_invalid_plugin_entity()   X-Ref
Attempt to get a generator for an entity that does not exist, from a plugin that does.

return: void