Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 319 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: profile_field_test  - 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.