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 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