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.

Various fixture course formats for backup unit tests

Copyright: 2022 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com}
License: https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 82 lines (3 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

format_test_cs_options:: (2 methods):
  get_default_section_name()
  section_format_options()

format_test_cs2_options:: (1 method):
  section_format_options()


Class: format_test_cs_options  - X-Ref

Fixture course format with one option.

get_default_section_name($section)   X-Ref
Override method format_topics::get_default_section_name to prevent PHPUnit errors related to the nonexistent
format_test_cs_options lang file.

param: \stdClass $section The section in question.
return: string The section's name for display.

section_format_options($foreditform = false)   X-Ref
No description

Class: format_test_cs2_options  - X-Ref

Fixture course format with 2 options, 1 inherited.

section_format_options($foreditform = false)   X-Ref
No description