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.

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

(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