Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Class: externallib_test  - X-Ref

External block functions unit tests

test_get_course_blocks()   X-Ref
Test get_course_blocks


test_get_course_blocks_site_home()   X-Ref
Test get_course_blocks on site home


test_get_course_blocks_overrides()   X-Ref
Test get_course_blocks


test_get_course_blocks_contents()   X-Ref
Test get_course_blocks contents


test_get_course_blocks_contents_with_mathjax()   X-Ref
Test get_course_blocks contents with mathjax.


test_get_dashboard_blocks_default_dashboard()   X-Ref
Test user get default dashboard blocks.


test_get_dashboard_blocks_default_dashboard_including_sticky_block()   X-Ref
Test user get default dashboard blocks including a sticky block.


test_get_dashboard_blocks_custom_user_dashboard()   X-Ref
Test admin get user's custom dashboard blocks.


test_get_dashboard_blocks_other_user_missing_permissions()   X-Ref
Test user tries to get other user blocks not having permission.


test_get_dashboard_blocks_my_courses()   X-Ref
Test user get default dashboard blocks for my courses page.


test_get_dashboard_blocks_incorrect_page()   X-Ref
Test user passing the wrong page type and getting an exception.