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.

Differences Between: [Versions 39 and 310]

Tests the events related to the user profile fields and categories.

Copyright: 2017 Mark Nelson <markn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 393 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_event_profile_field_testcase  - X-Ref

Tests the events related to the user profile fields and categories.

setUp()   X-Ref
Test set up.


test_user_info_category_created_event()   X-Ref
Test that triggering the user_info_category_created event works as expected.


test_user_info_category_updated_event()   X-Ref
Test that moving a user info category triggers an updated event.


test_user_info_category_deleted_event()   X-Ref
Test that deleting a user info category triggers a delete event.


test_user_info_field_created_event()   X-Ref
Test that creating a user info field triggers a create event.


test_user_info_field_updated_event()   X-Ref
Test that updating a user info field triggers an update event.


test_user_info_field_updated_event_move_field()   X-Ref
Test that moving a field triggers update events.


test_user_info_field_updated_event_delete_category()   X-Ref
Test that when we delete a category that contains a field, that the field being moved to
another category triggers an update event.


test_user_info_field_deleted_event()   X-Ref
Test that deleting a user info field triggers a delete event.