Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 1 class


Class: upgradelib_test  - X-Ref

Unit tests for the lib/db/upgradelib.php library.

setUp()   X-Ref
Shared setup for the testcase.


test_upgrade_block_set_defaultregion()   X-Ref
Ensure that the upgrade_block_set_defaultregion function performs as expected.

Only targetted blocks and pages should be affected.


test_upgrade_block_set_defaultregion_create_missing()   X-Ref
Ensure that the upgrade_block_set_defaultregion function performs as expected.

Missing block entries will be created.


test_upgrade_block_delete_instances()   X-Ref
Ensure that the upgrade_block_delete_instances function performs as expected.

Missing block entries will be created.


test_upgrade_block_set_my_user_parent_context()   X-Ref
Ensrue that the upgrade_block_set_my_user_parent_context function performs as expected.