Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

External block functions unit tests

Copyright: 2017 Juan Leyva <juan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 464 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


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