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.

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