Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

(no description)

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

Defines 1 class


Class: outputcomponents_test  - X-Ref

Unit tests for lib/outputcomponents.php.

test_fields_aliasing()   X-Ref
Tests user_picture::fields.


test_fields_unaliasing()   X-Ref
Tests user_picture::unalias.


test_fields_unaliasing_null()   X-Ref
Tests user_picture::unalias with null values.


test_get_url()   X-Ref
No description

test_empty_menu()   X-Ref
No description

test_basic_syntax()   X-Ref
No description

test_custommenu_mulitlang()   X-Ref
No description

custommenu_out(custom_menu_item $item, $depth = 0)   X-Ref
Support function that takes a custom_menu_item and converts it to a string.

param: custom_menu_item $item
param: int $depth
return: string

test_prepare()   X-Ref
No description

test_pix_icon()   X-Ref
No description

test_single_select()   X-Ref
Test for checking the template context data for the single_select element.


test_url_select()   X-Ref
Test for checking the template context data for the url_select element.


block_contents_is_fake_provider()   X-Ref
Data provider for test_block_contents_is_fake().

return: array

test_block_contents_is_fake($value, $expected)   X-Ref
Test block_contents is_fake() method.

param: mixed $value Value for the data-block attribute
param: boolean $expected The expected result