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.

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: 0 times
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