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.

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.