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.

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

(no description)

File Size: 784 lines (34 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_single_button()   X-Ref
Test for checking the template context data for the single_select element.


test_single_button_deprecated()   X-Ref
Test for checking the template context data for the single_select element legacy API.


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