Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 1 class


Class: question_display_options_test  - X-Ref

Unit tests for {@see \question_display_options}.

has_question_identifier_provider()   X-Ref
Data provider for {@see self::test_has_question_identifier()}

return: array[]

test_has_question_identifier(?string $identifier, bool $expected)   X-Ref
Tests for {@see \question_display_options::has_question_identifier}

return: void
param: string|null $identifier The question identifier
param: bool $expected The expected return value

add_question_identifier_to_label_provider()   X-Ref
Data provider for {@see self::test_add_question_identifier_to_label()

return: array[]

test_add_question_identifier_to_label(string $label,?string $identifier,bool $sronly,bool $addbefore,string $expected)   X-Ref
Tests for {@see \question_display_options::add_question_identifier_to_label()}

return: void
param: string $label The label string.
param: string|null $identifier The question identifier.
param: bool $sronly Whether to render the question identifier in a sr-only container
param: bool $addbefore Whether to render the question identifier before the label.
param: string $expected The expected return value.