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.

(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}

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

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()}

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.
return: void