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